For lunch, Lamy, Botan, Nene, and Polka each choose one of three options: a hot dog, a slice of pizza, or a hamburger. Lamy and Botan choose different items, and Nene and Polka choose the same item. In how many ways could they choose their items?

Let's think step by step and output the final answer within \boxed{}.
user