If we have an original square of side x we have the area as:
So if we decrease the sides by 2 and it results in a decrease of 36 we get
foil the left side
Subtract from both sides
Subtract 2 from both sides
Divide both sides by -4
So the original side is
Check:
Plug in x=10
works