247. 
A circle with diameter of length 10 is internally tangent at to a circle of radius 20. Square is constructed with and on the larger circle, tangent at to the smaller circle, and the smaller circle outside . The length of can be written in the form , where and are integers. Find . This problem is copyrighted by the American Mathematics Competitions.

Instructions for entering answers:
For questions or comments, please email markan@eudelic.com.
Try our new, free contest math practice test. All new, neverseenbefore problems.
I offer online AMC/AIME classes periodically. Join the mailing list to be informed next time they're offered.
Private coaching is also available.