Help me please i don’t have my notes and I forget how to do this

Answer:
AC = AB + BC
18 = (2X - 4) + (3X + 2)
18 = 5X - 2 ( add/subtract like terms)
20 = 5X (-2 take over otherside - 18 + 2)
X = 4
SUB X INTO AB AND BC
AB = 2(4) - 4 = 4
BC = 3(4) + 2 = 14