Mary spent a total of $351.67 for a party. She spent $200.57 on food, plus an additional $30.22 for each hour of the party. How long was the party?

Let x be the number of hours the party lasted.

The total cost of the party can be represented as:
200.57 + 30.22x = 351.67
30.22x = 151.1
x = 5

Therefore, the party lasted for 5 hours.