If the average of 16, 20 and n is between 18 and 21 inclusive, what is the greatest possible value of n?

Answer: 
27
If the average of 16, 20 and n is between 18 and 21 inclusive, what is the greatest possible value of n?