Solution
Andrew and Ryan paid the same entrance fee, let that be X dollars for each
Andrew and Ryan went on the same number of rides which cost $3.50 each, let that be n rides for each
The cost of Andrew rides = The cost of Ryan rides = ($3.50 / ride) ( n rides) = $ 3.50n
The cost of Both Andrew and Ryan rides = 2 ( $3.50n) = ($3.50) 2n = 2n($3.50)
The cost of both Andrew and Ryan entrance fees = 2 ($X) = $2X
The total amount of money spent by both = $44
You can Write Total cost = $ 44 = $ 2X + 2n ($3.50) divide both sides by 2 and remove the $ sign
22 = X + 3.50 n is your final equation
P.S. This is one equation two unknowns and you need to know either X or n to solve for the other unknown