A factory uses 1/6 of a barrel of raisins in each batch of granola bars. Yesterday, the factory used 1/2 of a barrel of raisins. How many batches of granola bars did the factory make yesterday? Simplify your answer and write it as a proper fraction or as a whole or mixed number.