2x-5y=-12
x-3y=-7
2x−5y=−12x−3y=−7
using the 2nd equation
x=3y−7
plugging this into the first equation
2(3y−7)−5y=−126y−14−5y=−12y−14=−12y=2
plugging this into our equation for x we get
x=3(2)−7=6−7=−1
As a check
2(−1)−5(2)=−2−10=−12(−1)−3(2)=−1−6=−7