Four cubes with edge lengths 2, 4, 6, and 8 are stacked as shown. What is the length of the portion of XY contained in the cube with edge length 6?
5633
2333
3433
6
42