The correct option is A 10C76!3!2!+ 10C54!5!2!
If A,B are on the first table, then remaining five can be selected in 10C5 ways.
Now seven persons including A and B can be arranged on the first table in which A and B are together in 2!5! ways. Remaining five can be arranged on the second table in 4! ways. Total number of ways is 10C54!5!2!.
If A,B are on the second table, then remaining three can be selected in 10C3 ways.
Now five persons including A and B can be arranged on the second table in which A and B are together in 2!3! ways.
Remaining seven can be arranged on the first table in 6! ways.
Hence, number of ways for second case is 10C76!3!2!.