Solve the following equation for B:

A=[h(b+B)]/2

2 A = h b + h B

h B = 2 A - h b

B = (2 A - h b)/h
or
= 2(A/h) - b