The shop sold 12,789 chocolate and 9,324 cookie dough cones. It sold 1078 more peanut butter cones than cookie dough cones. And 999 more vanilla than chocolate cones. What was the total number of ice cream cones sold?