A traveler drove 150 miles at 50 miles per hour and then 160 miles at 40 miles per hours .hiw many hours did the driver take altogether