• Brother

  • Cousin

  • Grandson

  • Son


Brother of son is also a son. So, X is son of Ys son i.e., X is Ys grandson.