According to the question, the distance between the points (4,p) and (1,0) = 5
⇒ √(1−4)2+(0−p)2=5[∵Distance between two points two points (x1,y1) and (x2,y2),d=√(x2−x1)2+(x2−y1)2]⇒√(−3)2+p2=5⇒√9+p2=5On squaring both the sides, we get9+p2=25⇒p2=16⇒p=±4Hence, the required value of p is ±4