A man has 7 relatives, 4 of them are ladies and 3 gentlemen; his wife has 7 relatives and 3 of them are ladies and 4 gentlemen. The number of ways they can invite a dinner party of 3 ladies and 3 gentlemen so that there are 3 of men's relatives and 3 of wife's relative is