6. Three boys and 20 girls stood in a row. Each child counted the number of girls who were to the left of them, the number of boys who were to the right of them, and added the results. What is the maximum number of different sums that the children could have obtained? (Provide an example of how such a number could be obtained and prove that a greater number of different sums is not possible.)