three points have coordinates A(-1,2),B(3,10)and C(p,8).Find the value (s) of p if AC is perpendicular to BC.