Area of triangle = 1/2 x base x height:
Area of triangle = 1/2 x 14 x 5 = 35
Area of square = 2 x 2 = 4
Shaded area = 35-4 = 31 cm^2