Seven relatives of a man comprises four ladies and three gentlemen; his wife has also seven relatives - three of them are ladies and four gentlemen. In how many ways can they invite 3 ladies and 3 gentlemen at a dinner party so that there are three man's relatives and three wife's relatives?