First, we will find the equation of the relationship between t and B.
A linear equation is of the form:

Where
(x1, y1) is a point the line goes through and (x2, y2) is another point the line goes through
Note: the independent variable here is t and the dependent is B. We will find the equation in the regular x and y variable, then change to t and B.
Let's take two points from the table:

Now, we will substitute the points into the line equation and figure out the answer:

In terms of "t" and "B", we can write the equation as:

----------------------------------------------------------------------------------------------------------------
Now,
Plugging in t = 3 into the equation will give us the charge amount (B) after 3 hours:

Thus, Melanie's phone had 30% battery charge after 3 hours she left home.