Nayeli is going to an amusement park. The price of admission into the park is $40, and once she is inside the park, she will have to pay $2 for every ride she rides on. How much money would Nayeli have to pay in total if she goes on 9 rides? How much would she have to pay if she goes on r rides?

Cost with 9 rides:
Cost with r rides:

Cost with 9 rides: $40 (admission fee) + 9 rides * $2/ride = $40 + $18 = $58

Cost with r rides: $40 (admission fee) + r rides * $2/ride = $40 + $2r