Answer:
 (E)  xy/(y-x)
Step-by-step explanation:
The sum of the individual rates is the total rate. Each machine's rate is nails per hour is the inverse of its rate in hours per nail.
 total rate = (800 nails)/(x hours) = 800/x nails/hour
 A rate = (800 nails)/(y hours) = 800/y nails/hour
We want to find the time "b" such that ...
 B rate = (800 nails)/(b hours) = 800/b nails/hour
__
As we said, the total rate is the sum of the individual rates:
 800/x = 800/y + 800/b
Multiplying by xyb/800, we get
 yb = xb + xy
Solving for b, we have ...
 yb -xb = xy
 b(y -x) = xy
 b = xy/(y-x) . . . . . matches choice E
It takes Machine B xy/(y-x) hours to produce 800 nails.