Explanation:
Area of the big square
Area=L×L
A=7×7
A=49
Area of the inner square(the small square)
A=L×L
A =3×3
A=9
Area of the shaded portion is equal to the difference of area of the big square and that of the inner square
Area of shaded portion=49-9
Area=40 cm