Alicia, Bill, and Ross are in Group A. David, Maddie, and Shelby are in Group B.The students are going to have their pictures taken. They will stand in 2 rows by group, and group members cannot be separated. If 2 girls or 2 boys cannot be standing next to each other, how many different ways can they a row?