A girl drove her bike at the rate of 10 moh and then after a flat tire she walked at the rate of 2 mph. The entire trip took 2 hours for a total of 16 miles. How long did she walk, and how long did she bike?