Given the equations of the sides AB,BC and CA of a triangle ABC are 2x+y=0,x+py=15a and x−y=3 respectively.
Now on solving equation 2x+y=0,x+py=15a and x−y=3 we get coordinates of A(1,−2),B(1−2p15a,1−2p−30a) and C=(p+118p−30,p+115p−33)

And let orthocentre be H(2,a)
Slope of AH=1a+2
Sloe of BC=−p1
As AH⊥BC, so p=a+2
Now coordinate of C=(p+118p−30,p+115p−33)
So, slope of HC
=p+118p−30−2p+115p−33−a=18p−30−2p−215p−33−(p−2)(p+1)
=16p−3216p−p2−31
Now HC⊥AB, so slope ofHC×slope of AB=-1
⇒16p−3216p−p2−31×−2=−1
⇒p2−8p+15=0
⇒p=3or5
But if p=5 then a=3 not acceptable as p=a+2
∴p=3