In general terms, the rental fee (B) will be the independent variable, and the mileage cost (M) will be the dependent variable.
So, the equation will be y = Mx + B, where M = rate per mile, x = number of miles, and B = rental fee
In the absence of the rental fee, no calculation can be done. The given data only show the total cost.
With the rental fee, it would be possible to determine the rate per mile by (total cost - rental fee) ÷ miles driven.