check the picture below. So the parabola looks more or less like so.
bearing in mind that the distance "p" is the same from the vertex to the directrix or the focus point, so the vertex is therefore half-way between those two fellows, now, from 3,4 up to y = 8, there are 4 units, and the vertex is half-way, thus is at y = 6, and x = 3, (3, 6) as you see there in the picture.
the parabola is vertical, meaning the squared variable is the "x", and is opening downwards, meaning the "p" distance is negative, so since "p" is 2 units, then p = -2.