For velocity vs time graphs, you can calculate displacement by finding the area between the line and the x-axis (time line). You should be able to recognize that space between the lines as a triangle, trapezoid, square, or rectangle and use the respective area formulas for these shapes.
See attached photo for worked out solution.
Explanation:
It is given that,
Initial speed of a golfer, u = 29 m/s
If it travels the maximum possible distance before landing. It means that it is projected at an angle of 45 degrees.
(a) We need to find the time spent by the ball in the air. It can be calculated by using second equation of motion.

Here,
a = -g
s = 0 (it is displacement and it is equal to 0 as the ball lands on the green).
So,

So, it will take 4.184 seconds in the air.
(b) let x is the longest hole in one that the golfer can make if the ball does not roll when it hits the green. It can be given by :

Hence, this is the required solution.