G is the father of Y. Y is the brother of J. M is the father of W. W is the son of J. How is M related to G?
Daughter's husband
Y is the brother of J, and G is Y's father, so G is also J's parent, since Y and J are siblings.
W is the son of J, and M is the father of W, so M is married to J.
Since C is G's child (a sibling of Y), M being married to J makes M the husband of G's daughter.
Hence, M is related to G as the daughter's husband.