Answer:
Number of months spent in first gym = 9
Number of months spent in second gym = 3
Step-by-step explanation:
Let she spent x months in a year at first gym and y months in a year at second gym
Now, there are 12 months in one year
⇒ x + y = 12
y = 12 - x .......(1)
Now, total money she spent in one year = $825
⇒ 75·x + 50·y = 825 .........(2)
Putting value of y from equation (1) in equation (2)
75·x + 50·(12 - x) = 825
⇒ 75·x - 50·x + 600 = 825
⇒ 25·x = 225
⇒ x = 9
Now, putting this value of x in equation(1)
⇒ y = 12 - 9
⇒ y = 3
Hence, number of months spent in first gym = 9
And number of months spent in second gym = 3