Problem:
Four cubes with edge lengths 1,2,3, and 4 are stacked as shown. What is the length of the portion of XY contained in the cube with edge length 3?
Answer Choices:
A. 5333ββ
B. 23β
C. 3233ββ
D. 4
E. 32β
Solution:
Label vertices A,B, and C as shown. Note that XC=10 and CY=42+42β=42β. Because β³XYC is a right triangle, XY=102+(42β)2β=233β. The ratio of BX to CX is 53β, so in the top face of the bottom cube the distance from B to XY is 42ββ 53β=5122ββ. This distance is less than 32β, so XY pierces the top and bottom faces of the cube with side length 3. The ratio of AB to XC is 103β, so the length of XY that is inside the cube with side length 3 is 103ββ 233β=(A)5333βββ.
OR
Place the figure in a 3-dimensional coordinate system with the lower left front corner at (0,0,0),X=(0,0,10), and Y=(4,4,0). Then line XY consists of all points of the form (4t,4t,10β10t). This line intersects the bottom face of the cube with side length 3 when 10β10t=4, or t=53β; this is the point (512β,512β,4), and because 512β<3, the point indeed lies on that face. Similarly, line XY intersects the top face of the cube with side length 3 when 10β10t=7, or t=103β; this is the point (56β,56β,7). Therefore the desired length is