The children had to collect rubbish, didn’t they? или The children had to collect rubbish, had not they? С объяснением
The children had to collect rubbish, didn’t they? В данном случае had to означает «должны/пришлось», поэтому вопросы будут содержать глагол didn’t как для Past Simple.