A knight traveled on his horse from one kingdom to another for 2 days. The first day he rode at a speed of 20 mph, and the second day he rode at a speed of 30 mph. If he traveled exactly the same amount of time each day and went 800 miles, find how many hours it took the knight to travel from one kingdom to another.