How do you solve this ?

Answer:
A. 15 mo; $875
B. 5 mo; $250
Step-by-step explanation:
A. Gym fees
Let n = no. of months
Community Gym: Fees = 50 + 55n
Workout Gym: Fees = 200 + 45n
When the fees are equal,
50 + 55n = 200 + 45n Subtract 50 from each side
55n = 150 + 45n Subtract 45n from each side
10n = 150 Divide each side by 10
n = 15
Community Gym: Fees = 50 + 55n
Fees = 50 + 55×15
Fees = 50 + 825
Fees = $875
Workout Gym: Fees = 200 + 45n
Fees = 200 + 45×15
Fees = 200 + 675
Fees = $875
After 15 mo, the fees at each gym will be equal at $875.
B. Computer
Option 1: Savings = 200 + 10n
Option 2: Savings = 100 + 30n
When the savings are equal,
200 + 10n = 100 + 30n Subtract 100 from each side
100 + 10n = 30n Subtract 10n from each side
100 = 20n Divide each side by 20
n = 5
Option 1: Savings = 200 + 10n
Savings = 200 + 10×5
Savings = 200 + 50
Savings = $250
Option 2: Savings = 100 + 30n
Savings = 100 + 30×5
Savings = 100 + 150
Savings = $250
After five months, the savings by either option will be equal at $250.