IF this is a 'right' triangle, then we can calculate an answer. If it's NOT a right triangle, then no answer is possible.
I'm going to assume that it's a right triangle, because you did say that one 'leg' is 12, and you want the length of the other 'leg'. It's common to refer to the two short sides of a right triangle as 'legs'.
In "Tales of Pythagoras", we learned that in a right triangle ...
(Longest side)² = (one leg)² + (the other leg)²
In your triangle ...
(20)² = (12)² + (the other leg)²
(400) = (144) + (the other leg)²
Subtract 144 from each side: (The other leg)² = (400 - 144) = 256