James was making cupcakes for a bake sale. The recipe he had uses 2 eggs for every dozen cupcakes. If James needed to make 18 cupcakes, how many eggs would he use?