In a group of 3 girls and 4 boys, there are two boys \( B_1 \) and \( B_2 \). The number of ways in which these girls and boys can stand in a queue such that all the girls stand together, all the boys stand together, but \( B_1 \) and \( B_2 \) are not adjacent to each other, is: