Final answer:
It will take 5 months for the total costs of Gym A (with a $25 joining fee and $30 monthly charge) and Gym B (with no joining fee and a $35 monthly charge) to be equal.
Step-by-step explanation:
To determine the number of months it would take for the total cost of both Gym A and Gym B to be equal, we set up an equation. For Gym A, the total cost is represented by the equation Ta = 25 + 30m, where m is the number of months. For Gym B, the total cost is Tb = 35m. To find when the costs are equal, we solve for m in the equation 25 + 30m = 35m. Subtracting 30m from both sides gives us 25 = 5m, and dividing by 5 yields m = 5.
So, it will take 5 months for the total costs at Gym A and Gym B to be the same. This is based on the initial joining fee and the monthly charges for each gym.