A child may select a small, medium, or large hamburger and then select one of lettuce, tomato, or mayonnaise for a topping. Use a tree diagram to determine the number of ways these selections may be made.
a. 9 ways
b. 12 ways
c. 6 ways
d. 16 ways
e. 18 ways