How do you find the missing side of a triangle if one long side is 12 and the base is 5?

You can't. But if you're told these are the legs of a right triangle, we recognize the triple ${5}^{2} + {12}^{2} = {13}^{2}$ so the hypotenuse is $13.$