In geometry, two triangles with corresponding angle measures equal, called similar triangles, have corresponding sides proportional. For example, in the figure, angle $A=$ angle $D$, angle $B=$ angle $E,$ and angle $C=$ angle $F,$ so the triangles are similar. Then the following ratios of corresponding sides are equal.
$$\frac{4}{6}=\frac{6}{9}=\frac{2 x+1}{2 x+5}$$
Solve for $x$, using the given proportion to find the lengths of the third sides of the triangles.