Jacob and Vincent went on a 20-kilometer bike ride that lasted 3 hours. They had to walk for most of the trip because there were many hills. Their walking speed was 4 kilometers per hour and their riding speed was 12 kilometers per hour. How much time did they spend walking.