During a chess match, there are 12 pieces left on the board. The ratio of white pieces to black pieces is 2 : 1. How many white pieces are on the board?