A person covers 1/4 of his journey at the speed of 25 km/h, 1/2 of the journey at 40 km/h, and the remaining at the speed of 50 km/h. Find his average speed per hour for the whole journey.
a) 35 km/h
b) 37.5 km/h
c) 40 km/h
d) 45 km/h