The one-time charge for joining the gym was $40. This can be represented in slope-intercept form as y = $40, where y is the total cost of joining the gym.
The recurring charge for maintaining the membership is $20 per month. This can be represented in slope-intercept form as y = $20x, where y is the total cost of maintaining the membership and x is the number of months the membership is maintained.
In both cases, the slope represents the cost per unit (either a one-time charge or a recurring charge per month), and the y-intercept represents the total cost when the number of units is 0 (either the one-time charge for joining the gym or the cost of maintaining the membership for 0 months).