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?

( ugh math)