A powerful wizard needs to prepare a potion to repel various mythical creatures. The recipe states that 3 cloves of garlic can repel 2 vampires, 8 vampire bats, or 3 wights. If the wizard needs to repel 30 vampires, 12 wights, and 40 vampire bats, how many cloves of garlic are required? Let's think step by step and output the final answer within \boxed{}.
user