The rectangle below has a base with length 26 and a height of 12. Inside the rectangle, there is an inscribed triangle whose base is the base of the rectangle, and whose third vertex lies on the top of the rectangle at a distance X from the corner. What should X be for the triangle to be a right triangle?