Apply second equation of kinematics
[tex]\\ \tt\hookrightarrow s=ut+\dfrac{1}{2}at^2[/tex]
[tex]\\ \tt\hookrightarrow 5=6t+\dfrac{1}{2}(-2)t^2[/tex]
[tex]\\ \tt\hookrightarrow 6t-t^2=5[/tex]
[tex]\\ \tt\hookrightarrow t^2-6t+5=0[/tex]
[tex]\\ \tt\hookrightarrow t^2-5t-t+5=0[/tex]
[tex]\\ \tt\hookrightarrow t(t-5)-1(t-5)=0[/tex]
[tex]\\ \tt\hookrightarrow (t-1)(t-5)=0[/tex]
[tex]\\ \tt\hookrightarrow t=(1,5)[/tex]