The picture below shows one right triangle inside another. Apparently, it was cold and sought shelter. The big triangle has two sides of length 2x; the little triangle has two sides of length x. The area covered by the big triangle but not covered by the little triangle is 24. What is x?