The given system of equations may be written as
1a⋅x+1b⋅y−(a+b)=0
1a2⋅x+1b2⋅y−2=0
By cross-multiplication, we have
⇒x1b×(−2)−1b2×−(a+b)=−y1a×−2−1a2×−(a+b)=11a×1b2−1a2×1b
⇒x−2b+ab2+1b=−y−2a+1a+ba2=11ab2−1a2b
⇒xab2−1b=−y−1a+ba2=11ab2−1a2b
⇒xa−bb2=ya−ba2=1a−ba2b2
⇒x=a−bb2×1a−ba2b2=a2
y=a−ba2×1a−ba2b2=b2
Hence, x=a2,y=b2 is the solution of the given system of equations.