Sam traveled 20 miles in 3 hours.
Sam walked part of the distance at a speed of 4 miles per hour.
Sam rode his bicycle for the remaining distance at a speed of 12 miles per hour.
How many hours did sam spend walking?
How many hours did sam spend biking?