A bakery sold 340 mocha cupcakes in a day, which was 85% of the total number of cupcakes sold that day. How many total cupcakes did the bakery sell that day?