x/2+h/3=y square root

make h the subject

x/2 + h/3 = √y

h/3 = √y - x/2
h = 3(√y - x/2)