If x is the greatest common factor of 40 and 48
and y is the least common multiple of 6 and 14,
what is the sum of x and y?