When the first of two numbers is added to twice the second the result is 21, but when the second number is added to twice the first the result is 18. Find the two numbers.