To start, to answer this question you would first need to find the LCM and the GCF of the numbers, 18 and 27.
The least common multiple, or LCM of 18 and 27 would be 54, in which you find by listing the multiples of both numbers to find the multiple that occurs first and matches with both numbers: 18, 36, 54 27, 54
Now, you have to find the GCF, or the greatest common factor, which is the greatest factor of both numbers that you can take out from both numbers without needing to simplify further. This number would be 9. One way to do this would be listing the factors of both numbers.
18: 1 and 18, 2 and 9, 3 and 6
27: 1 and 27, 3 and 9
Now, to answer the question, you find the difference of the LCM and the GCF. This would be 54-9 which is 45.
Answer: 45