An ellipse is inscribed in a square of side length 10, as shown in the figure above. If the point of tangency on the right side is 7 units away from the bottom of the square, then find the length of the major axis of the ellipse.
Give your answer to 3 decimal places.