Can you tell me if this answer is right.

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

2 answers

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