Answer
$5$ months
Work Step by Step
Let the number of months be $x$.
Then the total payment for company A after $x$ months will be:
$$60+42.95x$$
Similarly, the total payment for company B after $x$ months will be:
$$25+49.95x$$
Equate the expressions and solve:
$$60+42.95x=25+49.95x$$
$$60-25=49.95x-42.95x$$
Swap the sides:
$$49.95x-42.95x=60-25$$
$$7x=35$$
$$x=35:7=5$$
Answer is $5$ months.