A bakery sells three types of cupcakes: chocolate, vanilla, and red velvet. During one weekend, the bakery sold a total of 120 cupcakes. If the number of chocolate cupcakes sold was 40, and the number of vanilla cupcakes sold was 30, how many red velvet cupcakes were sold?