10 minutes after a plane leaves the airport, it is reported to be 40 miles away. What is the average speed in miles per hour of the plane?