When two matrices are equal, their corresponding entries (same row, same column) must be equal.
[5x+8y+3710x+12]=[253y+10]
This gives us four equations:
5x+8=2⋯(1)
7=3y+1⋯(2)
y+3=5⋯(3)
10x+12=0⋯(4)
From equation (1):
5x+8=2
5x=−6
x=−56
Verifying with equation (4):
10(−56)+12=−12+12=0✓
From equation (3):
y+3=5
y=2
Verifying with equation (2):
3(2)+1=7✓
Now substituting x=−56 and y=2 into 5x+3y:
5x+3y=5(−56)+3(2)
=−6+6
=0