Acidity order of carboxylic compounds [duplicate]

Arrange the following acids in decreasing order of acidity:

(a) X > Z > Y
(b) X > Y > Z
(c) Z > X > Y
(d) Z > Y > X

I arrived at option (c) according to -I effect, but the answer given is (a). Why is it so?