A plane flew for six hours. For two hours the average speed was 264mph. For four hours the average speed was 490mph. How far did the plane travel in six hours?