I'm trying to find the ambiguity in this grammar so I can remove it and convert it to LL(1), however for the life of me, I can't find the ambiguity. Moreover, I think there is cycle between X and Y and I could not find a solution to solve this.
1) X -->YX|$
2) Y --> ε|A|let A in Y|let A in E end
3) A--> x=E