Okay so first let’s set one of the two equations equation to one of the two variables
I’m going to pick the second equation and y
So
x+y=10
y=10-x
Now let’s bring the other equation in and substitute y for 10-x
2x+3y=45
2x+3(10-x)=45
Now solve for x
2x+3(10-x)=45
2x+30-3x=45
-x+30=45
-x=15
x=-15
Okay so now we have x = -15 now let’s find y by using the original equation I moved around and pigging in y like
y=10-x
Plug in x
y=10-(-15)
y=10+15
y=25
So now that I look back at the program you only needed x but her is x and y I hope I helped