Consider the two points A,B where the line meets at D,E
CD is the median of △CBE to side BE
So CD=12√2a2+2q2+(2c3)2
4CD2=2a2+2q2+4c92
4p2=2a2+2q2+4c92...(1)
CE is the median of △CDA opposite to side AD
So CE=12√2p2+2b2−(2c3)2
4CE2=2p2+2b2−4c92
4q2=2p2+2b2+4c92...(2)
Adding the two equations we get
4p2+4q2=2a2+2q2+2p2+2b2−4c92−4c92
2p2+2q2=2a2+2b2−8c92
2p2+2q2=2(a2+b2)−8c92
2p2+2q2=2(c2)−8c92
2p2+2q2=10c92
p2+q2=5c92
p2+q2=5c92
Hence, k=5.