In traveling from a dormitory to a certain city, a student went 1/4 of the way by foot, 1/2 of the way by bus, and the remaining 10 kilometers by car. What is the distance, in kilometers, from the dormitory to the city? Choose the correct choice from the following choices:
A) 10
B) 45
C) 30
D) 20
E) 40
Whole trip = distance by foot + distance by bus + distance by car   x = 1/4x + 1/2x + 10   x - 1/4x - 1/2x = 10   X = 40km   Option: 40
<result>E</result>
In traveling from a dormitory to a certain city, a student went 1/4 of the way by foot, 1/2 of the way by bus, and the remaining 10 kilometers by car. What is the distance, in kilometers, from the dormitory to the city?