Considering machine Y takes x days to complete w widgets, it's safe to say that X takes (x+2) days.
Therefore, rate of X = 1/(x+2) and rate of Y=1/x
Together, they take 3 days to complete (5/4)w widgets
That means \((\frac{1}{{x+2}} + \frac{1}{x}).3 = \frac{5w}{4}\)
Simplifying (skipping a few steps here because typing it out in mobile is hard T_T), we get:
\(\frac{x+1}{x(x+2)} = \frac{5w}{24}\)
This can be expanded to look like:
\(\frac{1}{x+2}.\frac{x+1}{x} = \frac{5w}{24}\)
Hey, that's the work equation for just machine X (RateX . Time taken = 5w/24)
We can manipulate this equation to establish one that requires machine X to produce 2w widgets. That means multiplying the RHS by a value that turns it into 2w
And that value would be \(\frac{48}{5}\)
Now that needs to go in the LHS as well. Neatly arranging our findings, we arrive with:
\(\frac{1}{x+2}.(\frac{48}{5}.\frac{x+1}{x}) = 2w\)
The bracketed part is the time taken by X alone to complete 2w widgets. Now it's just a matter of equating that time taken bit to each of the options and finding which works. Mind you, since there's a 48 in the numerator, the right answer will need to be a factor of 48, which leaves us with options 4, 8 and 12.
On checking, 12 is the only one that gives us a positive value for x. Therefore, that's our answer.