Let x = number of miles driven
cost of renting from the first company = 0.48x + 25.24
cost of renting from the second company = 0.37x + 42.51
The cost of the second company is cheaper if
0.48x + 25.24 > 0.37x + 42.51
0.11x > 17.27
x > 157 miles
The cost of the second company is cheaper if the car is driven more than 157 miles.