The product of roots is equal to the root of the product.
In other words, you need to find one perfect square that divides evenly into the number you're trying to simplify. For example, if you wanted to simplify sqrt(75), you'd go sqrt(25)*sqrt(3), this would give you 5*sqrt(3).
For forty, you'd take sqrt(4)*sqrt(10). This gives you 2*sqrt(10)