ANSWER
x = 4
Step-by-step explanation
If two powers that have the same base are equal, it means that their exponents are equal as well. In this case, the base is 3, so,
![2x+1=x+5](https://img.qammunity.org/2023/formulas/mathematics/college/6lh664fof0os0nakpej152hgbmjls2wy7k.png)
To solve for x, subtract x from both sides,
![\begin{gathered} 2x-x+1=x-x+5 \\ x+1=5 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/bt9ct1ppzvwunkroud3zwmrqsgjjwmit4x.png)
And then, subtract 1 from both sides of the equation,
![\begin{gathered} x+1-1=5-1 \\ x=4 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/3hr2qk2wbngjuxsp51t5kw65v1mrxtissl.png)
Hence, the value of x is 4.