As per the problem
Erika drove 280 miles in 5.5 hours.
She averaged 40 miles per hour driving through towns and cities .
She averaged 55 miles per hour driving on the highway.
Let Erika drive on high for "t" hours on highway.
Then driving time other than highway

As we know that


Hence for 4 hours Erika drove on the highway.