Three times one number plus a second number is 40, and the one number minus the second number is 4. Find the numbers.