Solve for A A=(a+b)/2*h