Can you tell me if this answer is right.

x^2+5x-14=(x-2)(x+7)

Correct!

you could always check it using FOIL or the distributive property. For example:

(x-2)(x+7) = x(x+7) -2(x+7)
which is
x^2 + 7 x - 2 x - 14
which is
x^2 + 5 x - 14 sure enough

Yes, the answer you provided is correct. The given expression, x^2 + 5x - 14, can indeed be factored into (x - 2)(x + 7).

To verify this, we can use the method known as "FOIL" (First, Outer, Inner, Last) to multiply the factors (x - 2)(x + 7) and check if it matches the original expression.

FOIL involves multiplying the first terms, then the outer terms, then the inner terms, and finally the last terms. So, let's do the multiplication:

(x - 2)(x + 7) = x * x + x * 7 - 2 * x - 2 * 7
= x^2 + 7x - 2x - 14
= x^2 + 5x - 14

As you can see, the result of multiplying the factors (x - 2)(x + 7) matches the original expression x^2 + 5x - 14. Hence, your answer is correct.