Two numbers have a sum of 24, and 7 times the first number minus the second number is equal to 16. What is the smaller number?