Question 413112

no. of ways that a girl on first position = 3  ( anyone from 3 girls)

no. of ways that a boy on last position = 3   (anyone from 3 boys)


no. of ways to arrange remaining 4 children = 4P4 = 4! = 24


no. of ways the children line up = 3 * 3 * 24 =  216


answer = 216