Show me the fully formula for 3x+4y=10 2x+y=5 simultaneously solve x and y

3x+4y=10 ....(1)

2x+y=5 ....(2)
Sovlve by substitution
from (2): y=5-2x
Substitute in (1)
3x+4(5-2x)=10
3x+20-8x=10
-5x=10-20
x=2
Substitute in (2) to get
2(2)+y=5
y=5-4=1
Check
3x+4y=3(2)+4(1)=10 check
2x+y=2(2)+1=5 check