the value of y or how do I solve it

Any straight line has associated a 180° angle, according to the this the addition of the angles shown, which can also be named as supplementary angles.
according to this we can write the equation
[tex](2y+1)+(5y-3)=180[/tex]solve the equation for y
[tex]\begin{gathered} 7y-2=180 \\ 7y=180+2 \\ 7y=182 \\ y=\frac{182}{7} \\ y=26 \end{gathered}[/tex]