A man has seven relative 4 of them are ladies and 3 gentlemen, his wife also has 7 relatives out of which 3 are ladies and 4 gentlemen. The number of ways in which they can invite a dinner party of 3 ladies and 3 gentlemen so that there are 3 of the man's relative and 3 of the wife's relative are