Let x = number of rentals
Plan A offers two free rentals, so we only pay for x-2 rentals.
Plan B offers six free rentals, so only x-6 of them are chargeable.
Cost of Plan A: 1.25(x-2) + 7.95 = 1.25x + 5.45
Cost of Plan B: 3.90(x-6) + 5.00 = 3.90x - 18.40
The costs are the same when 1.25x+5.45 = 3.90x-18.40
-2.65x = -23.85
x = 9