Easy
α,β are roots of the first quadratic, so use Vieta's to get α+β and αβ in terms of k. Those two numbers are themselves the roots of the second quadratic — apply Vieta's again to pin down k and p, then compute 8(k−p).
1
Vieta's on 2x2−6x+k=0:
α+β=26=3αβ=2k
2
(α+β) and αβ are the roots of x2+px+p=0. So their sum is −p and their product is p:
3+2k=−p3⋅2k=p(sum)⋯(1)(product)⋯(2)
3
Add (1) and (2) so the ±p cancels:
3+2k+23k=−p+p=0⇒ 3+2k=0 ⇒ k=−23⇒ p=23k=−49from (2)
4
Plug into the target expression:
8(k−p)=8(−23+49)=8⋅43=6
8(k−p)=6