For this case we know that the perimeter is given by:
And if we solve the algebra we got:
And we know that the perimeter is equal to the perimeter of a square of 9 of lenght and we know that the perimeter is:
We can set up the perimeter equal to this number we got:
Now we can solve for y we got: