We are given that the 50th root of x is 12 and the 50th root of y is 18.
So x=1250 and y=1850.
By Euler's theorem, since gcd(12,25)=1 and ϕ(25)=20, we have 1220≡1(mod25).
1250=1220⋅2⋅1210=(1220)2⋅1210≡1210(mod25)
Now compute 1210(mod25):
122=144≡19(mod25)
124=192=361≡11(mod25)
128=112=121≡21(mod25)
1210=128⋅122=21×19=399≡24(mod25)
182=324≡24≡−1(mod25)
1850=(182)25=(−1)25=−1≡24(mod25)
(x+y)(mod25)=(24+24)(mod25)=48(mod25)=23
The remainder is 23.