A student was driving to school at 50 mph. A quarter of the way there he ran out of gas. If he ran the rest of the way at 10 mph what was his average speed? Please explain as well.