I presume the shaded triangles are those that include the parallel sides of the trapezoid. Let the areas of the other two triangles are called C and D.

First, prove that C = D by considering the triangles with the areas A + C and A + D.

Next, prove that C / B = A / D, which implies AB = CD = C^2.