AMC 12A 2022 Problem 4

The least common multiple of a positive integer n and 18 is 180 , and the greatest common divisor of n and 45 is 15. What is the sum of the digits of n ?

Answer Choices
A. 3
B. 6
C. 8
D. 9
E. 12