The diagonals of a trapezoid divide a trapezoid into 4 triangles.

Find the area of the trapezoid in terms of the areas A and B of the shaded triangles.

I know that the area of a trapezoid is 1/2 (b1 + b2) h. But I am not sure how to use this in the problem.