Let:
x = Number of months
y1 = Total cost for Club A
y2 = Total cost for Club B
a = Fee of Club A per month
b = Fee of Club B per month
c = Initial fee of Club A
d = Initial fee of Club B
so:
So, the total cost will be the same for:
The cost will be the same for the month number 5. And the total cost will be:
$145