Ils sont and ils ont are almost indistinguishable on audio without context!
listen again, you should here
ils sont = IL-SS-ONT ils ont = IL-Z-ONT
It is just something that comes with practice. Clever programmes like Duolingo may be invented to teach us language efficiently, but practice is still necessary to understand the many variations in pronunciation in the real world.