If a−x is a factor of the expression −x2+51pa2, where p and a are constants and a>0, what is the value of p?
−5
−51
51
5