The sides of a triangle are $x$, $2x+1$, and $x+2$, where $x$ is a positive rational number. One of the angles of the triangle is $60$ degrees. Find the perimeter of the triangle.

Let's think step by step and output the final answer within \boxed{}.
user