The given figure can be redrawn as,
The area of a rectangle is the product of length and breadth of the rectangle.
Hence, the area of rectangle ABCD is,

The area of rectangle ECGF is,

Hence, the total area of the figure is,

Therefore, the area of the figure is 40 cm^2.
Hence, option (B) is correct