Let be the side length of the original square

Let be the area of the original square

Then we have: ............(1)

When the side-length is decreased by 2, the area decreases by 36, so we also have:

..............(2)

Now equate both formulas for A and solve for x, we get:

And i think you can take it from there