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