a man walked for some distance at 8 km /h and for an equal distance at 5km/h. the total time he took was 3 whole number 1/4 hours. find the total distance he walked.