There are 31 students in a class, number of girls is one more then number of guys.

We need to form a team of four students.

All four in the team cannot be from same gender and number of girls and guys in the team should not be equal.

How many ways can such a team be made?