Ya think about it like this:

5 seats and 2 girls have to be together how many ways can the group of two girls be arranged (not counting the fact that the two girls are different)

this gives 4 possibilities

xx000 0xx00 00xx0 000xx (where x's are girls 0's are guys)

But there are two different girls so we have twice as many ways to arrange the girls!

so 8 possibilities

now the boys are all different, how many ways can we arrange the three boys (6 ways or 3!)

thus 6*8 = 48 possibilities

if this doesnt make sense its prolly cuz im high