The problem is as follows:
The figure from below shows the squared speed against distance attained of a car. It is known that for $t=0$ the car is at $x=0$. Find the time which will take the car to reach $24\,m$.
The given alternatives on my book are:
$\begin{array}{ll} 1.&8.0\,s\\ 2.&9.0\,s\\ 3.&7.0\,s\\ 4.&6.0\,s\\ 5.&10.0\,s\\ \end{array}$
What I attempted to do to solve this problem was to find the acceleration of the car given that from the graph it can be inferred that:
$\tan 45^{\circ}=\frac{v^{2}\left(\frac{m^{2}}{s^{2}}\right)}{m}=1\,\frac{m}{s^{2}}$
Using this information I went to the position equation as follows:
$x(t)=x_{o}+v_{o}t+\frac{1}{2}at^2$
Since it is mentioned that $x=0$ when $t=0$ this would make the equation of position into:
$0=x(0)=x_{o}+v_{o}(0)+\frac{1}{2}a(0)^2$
Therefore,
$x_{o}=0$
$x(t)=v_{o}t+\frac{1}{2}at^2$
From the graph I can spot that:
$v_{o}^2=1$
$v_{o}=1$
Since $a=1$
$x(t)=t+\frac{1}{2}t^2$
Then:
$t+\frac{1}{2}t^2=24$
$t^2+2t-48=0$
$t=\frac{-2\pm \sqrt{2+192}}{2}=\frac{-2\pm \sqrt{194}}{2}=\frac{-2\pm 14}{2}$
$t=6,-8$
Therefore the time would be $6$ but apparently the answer listed on my book is $8$. Could it be that I missunderstood something or what happened? Is the answer given wrong?. Can somebody help me here?.

You're wrongly assuming $\color{blue}{a=1}$.
From the kinematics equation $v^2 = 2\color{blue}{a}x+u^2$, with constant acceleration,
when you graph $v^2$ against $x$, you get a linear equation of form $y=2\color{blue}{a}x + y_0$.
Here the slope represents $2\color{blue}{a}$.
$$2\color{blue}{a} = \tan(45) \implies \color{blue}{a = \frac{1}{2}}$$ Then the position function would be $$x(t)=t+\frac{1}{2}(\color{blue}{\frac{1}{2}})t^2 = t + \frac{1}{4}t^2 $$
Setting that equal to $24$ and solving gives $t=8$