Let's denote the price of an adult ticket as \( A \) and the price of a child ticket as \( C \). According to the problem, we know the following:
-
The child ticket is $2 less than the adult ticket: \[ C = A - 2 \]
-
Maggie and her 5 friends (a total of 6 children) bought tickets, making the total number of tickets 6: \[ \text{Total Tickets} = 6 \]
-
The total cost for all the tickets was $30. This can be expressed as: \[ 6C + 1A = 30 \] (where \(1A\) accounts for one adult ticket)
Now, we can substitute the value of \( C \) from the first equation into the second equation.
Substituting \( C \): \[ 6(A - 2) + A = 30 \]
Expanding the equation gives: \[ 6A - 12 + A = 30 \]
Combining like terms: \[ 7A - 12 = 30 \]
Adding 12 to both sides: \[ 7A = 42 \]
Dividing by 7: \[ A = 6 \]
Thus, the price of an adult ticket is \( \boxed{6} \).