A gym charges $27.95 per month and a one-time membership fee of $40. Another gym offers a monthly charge of $18.25 and a one-time membership fee of $180. After how many months will the cost be the same?