A student walks 8 km at x km/h. He then cycles 15 km at 2x km/h. In terms of x write down the time taken in hours a)when walking b)when cycling c)if the total time for the journey is 2 h 35 min, find the student's walking speed.