Randy wants to join a gym to lose his winter weight. Gym A has a membership fee of $39 and charges $30 per month. Gym B has a membership fee of $89 and charges $20 per month. After how many months would the amount of money paid at each gym be the same? How much would be paid?