*Hint: The things that are import to look for when factoring equations is the sign for the third variable and the numbers of the second and third variable.
Since the third sign is a negative, it means that it will have both a positive and a negative once it's factored.
What you do with the third variable is find it's factors and with those factors, you try to find the factors and arrange them in a manner that gets you the number of the second variable.
The factors for 24 are 1 * 24, 3 * 8, and 4 * 6.
The only numbers that manage to give you a 5 would be the pair of 3 and 8.
Since 5 is a positive, the greatest number should be positive and the smaller one negative.
Therefore, the answer is:
(x - 3)(x + 8)