Answer:
672 ways
Explanation:
The total number of ways the friends were supposed to sit without restrictions would have been = 6!
= 720 possible ways.
If the girs should sit on the first or last sit
The possible arrangement= 2!4!
= 2*24
= 48
But now the two girls should be arranged in such a way that the don't sit on either the first or the last chair.
So the possible way now is= way without restriction - way if the girls are to sit at either first or last sit
= 720-48
= 672