we have two equation and two variables:
![\begin{gathered} y=3x+4 \\ y=-2x-1 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/clx9r6wle0winu45deahbewcyrffogevwa.png)
Now we can substitude the first equation into the second equation:
![3x+4=-2x-1](https://img.qammunity.org/2023/formulas/mathematics/college/eyfi58edw79zkvogn7zjzdhlgz9x8vpute.png)
Now we move all the terms with an x to the left and the constants to the right
![3x+2x=-1-4](https://img.qammunity.org/2023/formulas/mathematics/college/fyfp4h2ukq8vzuupkgdx5brs1a50isxanm.png)
and we simplify
![\begin{gathered} 5x=-5 \\ x=-(5)/(5) \\ x=-1 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/4ogbfx8rn3cy9l7mutxatvk8z2cx5iyuxk.png)
Now with the value of x, we can substitude into any equation, I am going to use the first one:
![\begin{gathered} y=3x+4 \\ y=3(-1)+4 \\ y=-3+4 \\ y=1 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/8fam0adv7jrlxmjpus6z1xhiddg79xysy9.png)