The equation of a linear relationship is given to be:
[tex]y=mx+b[/tex]From the question provided, we have that:
[tex]\begin{gathered} b=30\text{ \lparen one-time payment\rparen} \\ m=1.50\text{ \lparen cost per class\rparen} \end{gathered}[/tex]Therefore, the relationship will be:
[tex]y=1.5x+30[/tex]If Adam attends 5 aerobics classes, this means that:
[tex]x=5[/tex]Substituting this into the equation, we can solve for y, the total cost, to be:
[tex]\begin{gathered} y=1.5(5)+30 \\ y=7.5+30 \\ y=37.5 \end{gathered}[/tex]The total cost is $37.50.