A local bakery offers two types of cupcakes: chocolate and vanilla. Last week, the bakery sold a total of 120 cupcakes, consisting of both chocolate and vanilla flavors.
The number of chocolate cupcakes sold was twice the number of vanilla cupcakes sold. Based on this information, determine the number of chocolate cupcakes sold.