Megan used her bike to go to a friend's house, 10 miles away from her house, and then jogged for 8 miles with her friend. The jogging time was one hour longer than her bike ride, and her biking speed was 4 times the jogging speed. Find the speed of Megan on the bike and while jogging, in mph.