Let's begin by identifying key information given to us:
Juan paid $21 for 4 visits
Juan paid $41 for 9 visits
This is represented as:
We will proceed to solve for the equation for the straight line using the point-slope form. We have:
Last month Juan visited the gym 29 times. This implies that x = 29. We will find the cost of this by substituting the value of x into the equation of the line: