Hi
Let x represent the length of the side of the square
rectangle: 2x and (x-3) the length and width
Question states***
2x(x-3) = x^2
2x^2 -6x = x^2
x^2-6x = 0
x(x-6) = 0
x = 6 units, the length of the side of the square
CHECKING our Answer***
12*3 = 36