gcd and lcm of the given numbers