It is not possible to prove this. As D is common between both figures, in the rectangle, we can only infer that two sides are the same as that of the square. We need to prove that the other two sides are the same as the side of the square for both areas to be equal.