The gcd of the two numbers \(a\) and \(b\) is \(40\). What is their smallest possible product? How large can their product be?