Let x = the number of days you decide to swim at the pool that month. If it costs $7 each day you swim, your cost would be:
Cost = $7*x = 7x
Now let's suppose you take the swim center's offer. You pay $30 one time and $4 each day you swim, so your cost would be:
Cost = $30 + $4*x = 30 + 4x
The costs are equal when:
7x = 30 + 4x
3x = 30
x = 10 days
So if you swim 10 days the costs are equal. If you swim less than 10 days, it's cheaper to NOT to buy the swim club's offer. If you swim MORE than 10 days, it's cheaper if you take the swim club's offer.