Answer
$175\ mi$, $67$ dollars.
Work Step by Step
Step 1. Assume $x$ miles will be needed. The cost from the first agency is $C_1=39+0.16x$
Step 2. The cost from the second agency is $C_2=25+0.24x$
Step 3. Letting $C_1=C=2$, we have $39+0.16x=25+0.24x$, which gives $0.08x=14$; thus $x=175\ mi$
Step 4. At this mileage, the cost is $C=39+0.16(175)=67$ dollars.