A bakery sells two types of cakes: chocolate and vanilla. The ratio of chocolate cakes to vanilla cakes sold on a particular day was 3 to 2.
If the bakery sold a total of 50 cakes, how many vanilla cakes did it sell?