Every hour at 12km/h I would go 12km. Simple.
The distance traveled in km is equal to 12 times how many hours you go.
If I go 27 km, I can go in reverse and divide by 12 to get 2.25 hours.
A quarter of an hour is 15 minutes, so the answer would be 2 hours and 15 minutes.