The side splitter theorem states that if a line intersects two sides of a triangle and is parallel to the third side of the triangle, it divides those two sides proportionally.
So:
x/24 = 5/10
Solve the proportion for x:
10x =24 (5)
10x = 120
x= 120/10
x= 12