Take the first coconut's starting position to be the origin, and the downward direction to be positive. The first coconut's position is determined by
[tex]y_1=\dfrac12gt^2[/tex]
where [tex]g[/tex] is the acceleration due to gravity.
So if it takes 2.0 s to reach the ground, then
[tex]y_1=\dfrac12\left(9.8\,\dfrac{\mathrm m}{\mathrm s^2}\right)(2.0\,\mathrm s)^2=20.\,\mathrm m[/tex]
(rounding to 2 significant digits)
The second coconut starts 20 m higher than the first, so its initial displacement is -20 m relative to the origin, and its overall position over time is given by
[tex]y_2=-20.\,\mathrm m+\dfrac12gt^2[/tex]
Reaching the ground is a matter of obtaining [tex]y_2=20\,\mathrm m[/tex], which requires a time of
[tex]20\,\mathrm m=-20\,\mathrm m+\dfrac12\left(9.8\,\dfrac{\mathrm m}{\mathrm s^2}\right)t^2\implies t=2.9\,\mathrm s[/tex]