To solve the equation, we can first get all the terms without x to the right side and all the terms with x to the lesft side.
We start by substracting 2 from both sides:
![\begin{gathered} 5x+2=3x+40 \\ 5x+2-2=3x+40-2 \\ 5x=3x+38 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/ku7taotjqvpw1fblkum7n0qx6yxuwhe6hu.png)
Now, we substract 3x from both sides:
![\begin{gathered} 5x=3x+38 \\ 5x-3x=3x-3x+38 \\ 2x=38 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/7ejmv45uky14delyrdmwszrbmiwbmjl56l.png)
Now that we have only terms with x on the left side and only terms without x on the right side, we can finish the solve by dividing both sides by 2:
![\begin{gathered} 2x=38 \\ (2x)/(2)=(38)/(2) \\ x=19 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/8mn9e0bo27jc6hoz1282a16lp9x7qx2wnk.png)
So, the solutions set is {19}.