algebra difficult subject

●A teacher arranged a group of students in a row such that no same sex sit beside each other.
●After a while , a new student joined the class &the teacher re-arranged them in the same manner to discover that the number of ways increased by 200%.
●Find the number of students before the new one joined .