Solve for c A=1/2h(c+d)