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