A box measuring 35 inches long by 20 inches wide by 10 inches deep is to be filled entirely with identical cubes. No space is to be left unfilled. What is the smallest number of cubes that can accomplish this objective?
Choose the correct choice from the following answers:
A) 17
B) 18
C) 54
D) 56
E) 864

Rationale: "least number of cubes will be required when the cubes that could fit in are biggest . 5 is the biggest number that could divide all three , 35 , 20 and 10 . thus side of cube must be 5 , and total number of cubes = 35 / 5 * 20 / 5 * 10 / 5 = 56 ans d it is ."
Answer: D