40 16,000 people, of whom the tribute for the LORD was 32.

Read Numbers 31:40 Using Other Translations

And the persons were sixteen thousand; of which the LORD'S tribute was thirty and two persons.
The persons were 16,000, of which the LORD's tribute was 32 persons.
and 16,000 virgin girls, of whom 32 were the LORD ’s share.