There are two mystery numbers. The sum of 7 times the first number and 8 times the second number is 22. The sum of 5 times the first number and 8 times the second number is 18. What are the two numbers?