Answer:
Y=2, E=9, A=1, R=0
Explanation:
1000Y+100Y+10Y+Y-100E-10E-E+10A+A-R=1234
1111Y-111E+11A-1R=1234
Y cannot be 1, and it cannot be greater than 2, since the other digits could not possibly make it add up to 1234. This means that Y must be 2:
2222-111E+11A-R=1234
In this case, E would have to be 9 to make it possible for this to have a solution, by bringing it down to 1223.
1223+11A-R=1234
1223+11=1234, meaning that A must be 1 and that R must be 0. Hope this helps!