The sum of 12 and the product of 7 and a number is 40. What is the number? three less than the product of 6 and a number is 45. What is the number?