Six friends are sitting in a row and given condition that they should not sit at last and first of row
So six chairs are named 123456
So the girls should not not sit at last that is 1st and 6th chair
So there are 4 chairs left that is 2,3,4,5
So there 4 possible arrangements