Answer:
In 4 months the cost of both gyms will be the same.
Explanation:
At first we need to model the function to calculate the cost of the 2 gyms.
Slope-intercept equation of linear function

where
slope of line
y-intercept
Let linear function to calculate total cost of gym be:

where
total cost of gym
cost per month (slope)
number of months
start-up fee (y-intercept)
For Gym 1
,

For Gym 2
,

In order to find the number of months the cost of both gyms will be the same, we need to equate both functions and solve for number of months



So,
In 4 months the cost of both gyms will be the same.