Marys airplane trip took 5.8 hours for one-half of that time, the airplane flew at a constant speed of 640 miles per hour and for the rest of the time, it flew at a speed of 580 mph. what distance did mary travel?