Consider an ellipse centered at the origin with a major axis of length 10 and a minor axis of length 6. This ellipse is inscribed in a cube such that the faces of the cube are parallel to the coordinate planes. Find the length of the edge of the cube. Let's think step by step and output the final answer within \boxed{}.
user