1. According to the theorem of Viéte (or do you call him Vieta?) the mean of the 2 solutions of the 2nd equation is

2. Solve the 1rt equation using the quadratic formula. After moving some stuff around you'll get:

3. Using the result from 1. you have to solve for k:

I'll leave this for you.

Spoiler: