Answer
X is a stronger acid than W because the anion of X is more stable than the anion of W.
Work Step by Step
The electronegative N in X can support the negative charge more better than carbon. Hence, the anion of X is more stable than the anion of W. So X is a stronger acid than W.