Mindy and Troy combined ate 999 pieces of the wedding cake. Mindy ate 333 pieces of cake and Troy had 1/4 of the total cake. ​ Write an equation to determine how many pieces of cake (c) there were in total.