Please use a lower-case X (x) for a variable. The × character is used to signify multiplication, and makes no sense in the context of your expression.
24 +6x
= 6(4 +x)
= 6x +24
= 3(2x +8)
= 2(3x +12)
Basically, you can factor out any number you like. It is easiest to use one of the common factors (2 or 3). You can rearrange the order, and divide the numbers into parts.
= (19 +3x) +(3x +5)