A family is moving from city A to city B. The moving van leaves city A at 10am. Traveling at an average speed of 45 miles per hour, the moving van arrives in city B at 4pm. If the family travels by car at an average speed of 54 miles per hour and arrives in city B at the same time as the moving van, how many hours after the moving van left city A did the family leave?