Mindy and Troy combined ate 9 pieces of the wedding cake. Mindy ate 3 pieces of cake and Troy had 1/4 of the total cake.

a) Write an equation to determine how many pieces of cake (c) there were in total.
b) Find the total number of pieces of cake.