The side lengths of a right triangle are
;
.
Apply Pythagorean theorem: 
(Substitute 12 for a and 6 for b)
(Evaluate powers:
)
(Add:
)
(Apply square root on each side)
(Cancel square and root)
(Use a calculator:
)
The length of the hypotenuse
.