On the basis of given data we can draw family tree which is drawn below. 1) X`s mother is sister of Y and daughter of M. 2) S is daughter of Y and sister of T.
Thus from the family tree it depicted that M can be maternal grandfather or grandmother or paternal grandfather or grandmother of T.