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 2?
5333
5233
533
2
7433