Let the two numbers be x and y.
Their sum is less than 10.
Therefore both x and y are single digit numbers in the range [1 .. 9]
pairs of numbers adding to 10
1+9 product is 9
2+8 product is 16
3+7 product is 21
4+6 product is 24 (a possibility)
5+5 product is 25 (a possibility)
We are not told thast the two numbers must be different numbers.
Therefore we have two answers.
Answers: 4 and 6, 5 and 5