David drives 240 miles from Edinburgh to York. He drives the first 90 miles at an average speed of 45 mph. From this point, it takes David 2 hours and 48 minutes to complete his journey.
What was David's average speed for the whole journey?