24 men can complete a piece of work in 16 days. 16 women can complete the same work in 12 days. 8 men and 8 women started working on the task. After 6 days, x men were added to the group such that the work was finished in 4 more days. Find the value of x.