Correct option is D
Let the actual distance travelled be d km.
Let the time taken to travel this distance be t hours.
When walking at 12 km/hr, the distance travelled
12t = d
When walking at 18 km/hr, the distance travelled
18t = d+24
d= 18t -24
Equate both
18t -24 = 12t
6t= 24
t= 4
Distance = 12t = 12×4 = 48km