ANSWER

Step-by-step explanation
It costs $40 upfront to join the club and $20 per month.
Let the number of months be m.
This means that the equation that represents the equation that represents the total cost is:

The average cost of joining the club is the total cost divided by the number of months.
That is the average cost will be $30 when:

To find the number of months it will take for the average cost per month of joining the swimming club to be $30, we have to solve for m:

It will take 4 months.