You need to factor this number into a product of two numbers, one of which must be a perfect square. Then you take the square root of this perfect square and get a rational number.
So, the factors of 45 are 1, 3, 5, 9, 15, and 45.
As you can see, number 9 is the largest perfect square here.