In the accompanying diagram of right triangle CAT, altitude AP divides hypotenuse TC into segments of lengths x and x+7, and AP =12.

Find the length of TA