k wt abt 'how many ways to arrange if x objects not together"
There are two ways to solve this
First find total number of different ways the x objects can be found
th*n find the number of ways they are together.
You find the answer and minus it with the above part i wrote.
Or
Just Assume they are not together and find the permutation/combination of the x objects