A number is twice another number. When the larger is subtracted from 50, the result is 2 more than when the smaller is subtracted from 40. Find the numbers.
The GCD of two numbers does not change if the smaller number is subtracted from the larger number.