For members :
Membership fee = $6.
Cost of each aerobics class = $3.
Slope -intercept form for total cost for members:
y = 3x + 6.
For non-members:
Cost of each aerobics class = $4.
Slope -intercept form for total cost for non-members:
y= 4x.
When cost will be same,
4x = 3x+6.
Solving equation for x now.
Subtracting 3x from right side, we get
4x-3x = 3x-3x+6
x = 6.
Therefore, 6 number of aerobics classes will the cost for members and nonmembers be the same.