The LCm of two numbers is 48 and their GCF is 8. The sum of the two numbers is 40. What are the two numbers

16 and 24