What is the value of n in the equation 3n = 18 ?

A. 5 B. 6 C. 15 D. 21