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