You have to solve it by turning it into an equation. Therefore you would get 12km = 4 Hours.
15km = X Hours.
If you divide 12km by 4 hours, you will get that it takes 1 hour to travel 3km.
And since in 15km you have 5 times 3km, you would get that it takes 5 hours to walk 15 km.