There are 18 pieces of chalk. The ratio of chalk that is yellow to chalk that is not yellow is 1 to 2. How many pieces of chalk are yellow?