Answer:
AB = 6
Step-by-step explanation:
[tex]AB+BC=AC\\\\x+3x=24\\\\4x=24\\\\x=6[/tex]
Therefore, AB = 6.