A bakery sells mocha cupcakes and chocolate cupcakes. It sold 340 mocha cupcakes in a day. 15% of the cupcakes sold that day were chocolate. How many total cupcakes did the bakery sell that day?