Let the distance be x km.
Then,
(Time taken to walk x km) + (Time taken to ride x km) = (23/4)hrs
=> (Time taken to walk 2x km) + (Time taken to ride 2x km) =(23/2)h
But, time taken to ride 2x km = (15/4) hrs Time taken to walk 2x km =[(23/2) - (15/4)] hrs = (31/4) hrs = 7 hrs 45 min.