Part a)
Since m is the number of miles driven and company A charges a base price of $56 plus a charge of $0.25 per mile, we can write the following equation:

Part b)
Again, since m is the number of miles driven and company B charges a base price of $45 plus a charge of $0.58 per mile, we can write the following equation:

Part c)
The cost of renting a car from both companies will be the same when:

Then, we solve the following equation for m:

Therefore, the cost of renting a car from both companies will be the same at 33.33 miles.