We have two different gym plans here.
Plan A.
Pay $80 for a monthly pass and $5 for each visit.

Where x represents visits.
Plan B.
Pay $15 for each visit without a monthly pass.

Now, we make these equations equal to find the number of visits x

Hence, after 8 visits, the cost will be the same.