Melinda put 64 pieces of cake on a table. She placed them in 8 rows with the same number in each row. Each row had an equal number of two flavors of cake. How many pieces of each flavor were in one row?

Responses
A 6, because 64 ÷ 8 = 8 and 8 − 2 = 66, because 64 ÷ 8 = 8 and 8 − 2 = 6
B 28, because 64 − 8 = 56 and 56 ÷ 2 = 2828, because 64 − 8 = 56 and 56 ÷ 2 = 28
C 54, because 64 − 8 = 56 and 56 − 2 = 5454, because 64 − 8 = 56 and 56 − 2 = 54
D 4, because 64 ÷ 8 = 8 and 8 ÷ 2 = 4

The correct answer is D. Melinda put 64 pieces of cake on the table in 8 rows, so there are 64 ÷ 8 = 8 pieces of cake in each row. Since each row has an equal number of two flavors of cake, each flavor has 8 ÷ 2 = 4 pieces in one row.