in MMA : how to get the variable values by solving one equation directly?

In Mathematica, I want to get the variable values by solving one equation directly, this means: I have the equation
a1x+b1y+c1=d1a2x+b2y+c2=d2a_1 x + b_1 y + c_1 = d_1 \\ a_2 x + b_2 y + c_2 = d_2
if we finally want to get the value Ax2+By2A x^2 + B y^2, we need to solve the above equation firstly to get x,yx,y, so in Mathematica
in MMA : how to get the variable values by solving one equation directly?
but now we directly compute the Ax2+By2A x^2 + B y^2,
in MMA : how to get the variable values by solving one equation directly?so we can see that it doesn’t do anything (our aim is to substitute x,yx,y into Ax2+By2A x^2 + B y^2).

Now we give the solution
in MMA : how to get the variable values by solving one equation directly?