The answer is 1814400
first two children should be chosen from 4 children to occupy the end seats. this can be done in 6 ways. Now they can be seated in 2 ways.
next we select a seat for the old man. he can't sit in 2nd seat or 10th seat as they are beside the end seats in which children sat. He can sit anywhere from 3rd seat to 9th seat. there are 7 seats so there are 7 ways in which he can be seated.
now in the remaining 8 seats the remaining children can't occupy two seats that are beside the old man. therefore they should sit in the remaining 6 seats which can be done in 6P2 ways i.e 30 ways.
now there are 6 seats remaining. 6 adults can be arranged in those 6 seats in 6! ways i.e. 720 ways.
hence the answer is 6*2*7*30*720=18144000