Out of 5 girls, he has to invite exactly three. This can be done in 5C3 ways. Out of the 4 boys, he may invite either one or two or three or four or even none of them. This may be done in (2)4 ways. Thus the total number of ways is 5C3×(2)4=10×16=160