Solve for h A=1/2(B+b)h