First, we will find the equation of the relationship between t and B.
A linear equation is of the form:
![y-y_1=(y_2-y_1)/(x_2-x_1)(x-x_1)](https://img.qammunity.org/2023/formulas/mathematics/college/hkbzvop4iz62zgm93u190774353c4ig6id.png)
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:
![\begin{gathered} (x_1,y_1)=(1,42) \\ \text{and} \\ (x_2,y_2)=(5,18) \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/8o1fikcjeflntt3iw4fz93wr969woutfiv.png)
Now, we will substitute the points into the line equation and figure out the answer:
![\begin{gathered} y-y_1=(y_2-y_1)/(x_2-x_1)(x-x_1) \\ y-42=(18-42)/(5-1)(x-1) \\ y-42=(-24)/(4)(x-1) \\ y-42=-6(x-1) \\ y-42=-6x+6 \\ y=-6x+6+42 \\ y=-6x+48 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/r28pkmdq0kf6t1d75h3q6cysjp0qinwi03.png)
In terms of "t" and "B", we can write the equation as:
![B=-6t+48](https://img.qammunity.org/2023/formulas/mathematics/college/8q9bljavywizg0xnpbo8fmgbwst1fncgyv.png)
----------------------------------------------------------------------------------------------------------------
Now,
Plugging in t = 3 into the equation will give us the charge amount (B) after 3 hours:
![\begin{gathered} B=-6t+48 \\ B=-6(3)+48 \\ B=-18+48 \\ B=30 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/27zn4818ecz8l619317zztn6ia6i76c0xe.png)
Thus, Melanie's phone had 30% battery charge after 3 hours she left home.