864=2^5*3^3, so x must have at least 2^3 and 3^2
why not 2^2 and 3^1?
If x only has a factor of 2^2, x^2 cannot have a factor of 2^6 and thus 864 wont be a factor of x^2. Same for 3^2