A man takes 6 hours 15 minutes in walking a distance and riding back to the starting place. He could walk both ways in 7 hours 45 minutes. The time taken by him to ride both ways, is
A). 4 hours
B). 4 hours 30 minutes
C). 4 hours 45 minutes
D). 5 hours