We are given a problem that can be solved using a linear equation model. To do that, let's remember the general form of a linear equation:
![y=mx+b](https://img.qammunity.org/2023/formulas/mathematics/high-school/smsb8cbft03lwblmi49nf2l6jby2ofxzws.png)
Where "m" is the slope and "b" the y-intercept.
Let "y" be the amount to pay and "x" number of miles. Since the initial charge is $25, this means that b = 25. Since we are told that $0.42 per miles is charged. This means that the total cost is the cost per miles by the number of miles plus the initial cost, that is:
![y=0.42x+25](https://img.qammunity.org/2023/formulas/mathematics/college/b2xb2hnv8ngh4qwnfgp89k77dzermeviit.png)
Now we are asked about the cost for 42 miles, that is "x = 42". Replacing in the equation we get:
![\begin{gathered} y=0.42(42)+25 \\ y=42.64 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/pozuwrpfdzi9or80hg61aaqd7w7c03yx7j.png)
Therefore, the cost to go to her hotel is $42.64