Hello there,
There were 8 men who completed a task in 40 days. If you divide 40/8 that is 5 so it took them 5 weeks to complete this task.
Now if you add two more men, that makes it 10 men to complete the work in 50 days. If you divide 50/10 that is 5.
10 days
Hope this helped!