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:
[tex]\begin{gathered} (x_1,y_1)=(4,21) \\ (x_2,y_2)=(9,41) \\ slope(m)=\frac{\Delta y}{\Delta x}=\frac{y_2-y_1}{x_2-x_1} \\ slope(m)=\frac{41-21}{9-4}=\frac{20}{5}=4 \\ slope(m)=4 \\ \\ \end{gathered}[/tex]We will proceed to solve for the equation for the straight line using the point-slope form. We have:
[tex]\begin{gathered} y-y_1=m(x-x_1) \\ (x_1,y_1)=(4,21) \\ y-21=4(x-4) \\ y-21=4x-16 \\ \text{Add ''21'' to both sides, we have:} \\ y-21+21=4x-16+21 \\ y=4x+5 \\ \\ y-intercept\Rightarrow x=0 \\ when\colon x=0 \\ y=4(0)+5=0+5=5 \\ y=5 \\ \\ \therefore y-intercept(at,ZeroVisit)=\text{\$}5 \end{gathered}[/tex]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:
[tex]\begin{gathered} y=4x+5 \\ x=29 \\ \Rightarrow y=4(29)+5=116+5=121 \\ y=\text{\$}121 \end{gathered}[/tex]