We pick either of the equations and write one variable in terms of the other.
Let us consider the equation bx−ay=0 and write it as
Substitute the value of x in equation ax+by=a2+b2. We get
Substituting this value of y in the equation x=ayb, we get
Hence, the solution is x=a,y=b.