The following question I encountered in the National Talent Search Examination 2019 in India (State - Andra Pradesh)

If -2 is a root of the quadratic equation x^2 –px + 6 = 0 and x^2 + px – k = 0 has equal roots, then the value of k is

(1) 6 (2) 10 (3) 14 (4) 18

They have given the answer as 14.

How to do? With the normal understanding of root and equal roots I am not able to get any of the choices as my answer.

Help solicited.

With regards

Aranga