Let the price of an adult ticket be \( x \). Then, the price of a child ticket would be \( x - 2 \).
Maggie and her five friends (a total of 6 children) went to the movies, so the total cost for the child tickets is:
\[ 6 \times (x - 2) \]
The total cost of all the tickets, which includes both adult and child tickets, was $30. Since there are no adult tickets purchased in the scenario described, we can equate the cost of the child tickets to $30:
\[ 6 \times (x - 2) = 30 \]
Expanding and solving for \( x \):
\[ 6x - 12 = 30 \]
Adding 12 to both sides:
\[ 6x = 42 \]
Dividing by 6:
\[ x = 7 \]
Thus, the price of an adult ticket is \( \boxed{7} \).