The unknowns are number of times Katy rode the roller coaster and the number of times she rode the water slide. Set number of roller coaster rides to nR and number of water slide rides to nW. Total number of rides then is nR + nw which is 12.
This gives you one equation nR + nw = 12. ----------- equation 1
The total time spent on roller coaster rides is 25nR minutes, and the total time spent on water slide rides is 10nW minutes. The total time spent on rides is 25nR + 10nw which is 3 hrs (180 minutes).
This gives your second equation 25nR + 10nw = 180. -------------- equation 2
You can solve the system of two equations in two variables simultaneously by elimination or by substitution.
Substitution:
From equation one we get nR = 12 - nW. Substituting in equation two, we get 25(12 - nW) + 10nw = 180. Solve to get nw = 8. Using equation 1 again nR = 12 - 8 ----> nR = 4. Katy rode the roller coaster four times and the water slide eight times.
Elimination:
Arrange the equations one under the other as follows.
nR + nw = 12 ----------------------- equation 1
25nR + 10nw = 180 ------------------- equation 2
Multiply equation 1 by -10 and add both equations:
-10nR - 10nw = -120 ----------------------- equation 1 x -10
25nR + 10nw = 180 ------------------------ equation 2
_______________________________________________
15nR = 60 -----------------> nR = 4.
Solving equation 1 for nR = 4 we get nW = 8 like before.