The equation of a linear relationship is given to be:

From the question provided, we have that:

Therefore, the relationship will be:

If Adam attends 5 aerobics classes, this means that:

Substituting this into the equation, we can solve for y, the total cost, to be:

The total cost is $37.50.