A bus took a seven hour trip and traveled 330 miles. The speed was 54 mph for the first part of the trip, and then decreased to 30 mph for the second part of the trip. How many hours were traveled at each speed? 54 and 30