A first number plus twice a second number is 8. Twice the first number plus the second totals 10. Find the numbers.