pull down to refresh

If you add a horizontal line where green touches red, and a vertical line where blue touches red, you get

square

The rectangles double the respective triangles' areas.
The answer is 5+4+3 minus the area of the top-left x.
But I couldn't solve that :(