Please solve this question and please say how and where to practise these kind of questions more

hi, can u help me with this question, there are x economists y polticians, arrange them in n rooms,conditions:-1)economists can never be alone,2)no room can be empty, find no of ways,