A number is 5 less than the square of the other number. The product of the two numbers is 12. What are the numbers?