in how many different ways can 4 students stand in a straight line if two of the students want to stand next to each other?
AB XX
BA XX
X AB X
X BA X
XX AB
XX BA SIX ways to be next to each other * 2 ways to fill XX = 12 ways