Out of 10 persons, A is in and G and H are out of the team, so we have to select 4 more from 7 remaining. This can be done in 7C4 ways. These 5 persons can be arranged in a line in 5! ways. Hence, the number of possible arrangements is 7C4.5!=7C3.(5!).