An event hall charges a base fee of $300 for the first 4 hours of rental. For each additional hour beyond the first 4 hours, the charge is $50 per hour. If an event lasted for hours, where , and the total cost was $550, what was the duration of the event in hours?