Suppose A has x no. of oranges and B has y no. of oranges.
According to the given conditions, we have
and, y+10=x−10⇒x−y−20=0 ..(ii)
Substracting equation (ii) from equation (i), we get
Putting y=50 in equation (i), we get x=70
Hence, A has 70 oranges and B has 50 oranges.