A man has 7 relatives,4 of them are ladies and 3 of them are gentleman, his wife has also 7 relatives 4 of them are gentleman and 3 of them are ladies.In how many ways can they invite a dinner party for 3 ladies and 3 gentlemen so that there are 3 of the man's relatives and 3 of the wife' relatives.