Let us say that the total amount paid in the first dealer is P1 and the total amount paid to the second dealer is P2. So that:
P1 = 2500 + 150 t
P2 = 3000 + 125 t
Where t is the total number of months
Now we are asked when the total amount paid would be equal for the two dealers, this means P1 = P2, therefore equating the two:
2500 + 150 t = 3000 + 125 t
25 t = 500
t = 20 months
Therefore the total amount paid for both dealers would be equal after 20 months.