Out of 8 students in Section Alpha, 10 students in Section Beta and 12 students in Section Gamma, a teacher wants to create a team of three to represent the school in inter-school quiz competition. In how many ways the team can be formed such that all the members of the team are not from the same section ?