please help ive been stuck on this for a very long time

By Thales' theorem:
[tex]\[\begin{array}{l}\frac{{18}}{{2x + 2}} = \frac{{24}}{{3x + 1}}\\18(3x + 1) = 24(2x + 2)\\54x + 18 = 48x + 48\\6x = 30\\x = 5\\A.\end{array}\][/tex]