The gcd of numbers \(a\) and \(b\) is \(40\). What can be their smallest possible product? What could be their greatest possible product?