One leg of a right triangle is 12 cm. Let h\displaystyle {h} be the length of the hypotenuse and let p\displaystyle {p} be the perimeter of the triangle. Express h\displaystyle {h} as a function of p\displaystyle {p}.
h(p)=\displaystyle {h}{\left({p}\right)}=