For now, we'll look at the two people who have to set next to each other as one person. So, there are nine people who are sitting in a row. These nine people can sit together in a total of 9! ways.
However, there are two ways for those two people to sit next to each other.
So, the correct answer is 2!*9!, or 725760.
hopefully this is correct :)
(this is assuming that front to back vs back to front are two different things)