A train covers the first 5km of its journey at a speed of 30km/hrand the next 15km at a speed of 45km/hr. What is the average speed of the train?

a. 35km/hr
b. 39.5km/hr
c. 37.5km/hr
d. 40km/hr