After ticket sales at a volleyball game, a cash box contains 87 coins in loonies and toonies. The total value of the money is $161. The situation can be represented by the following system of equations:

Number of coins:
Total Value:
L+T = 87
L + 2T = 161
where L is the number of loonies and T is the number of toonies. Solve the system of equations using substitution or elimination to determine the number of loonies and toonies.

From the first equation, we can express L in terms of T as L = 87 - T. Substituting this into the second equation, we get:

(87 - T) + 2T = 161
87 + T = 161
T = 161 - 87
T = 74

Now that we have the number of toonies, we can substitute back into the first equation to find the number of loonies:

L + 74 = 87
L = 87 - 74
L = 13

Therefore, there are 13 loonies and 74 toonies in the cash box.