The problem is as follows:
The figure from below shows the speed against time of two cars, one blue and the other orange. It is known that both depart from the same spot. Find the instant on seconds when one catches the other.
The given alternatives are:
$\begin{array}{ll} 1.&14\,s\\ 2.&16\,s\\ 3.&20\,s\\ 4.&25\,s\\ 5.&28\,s\\ \end{array}$
For this problem I attempted to do the "trick" using the areas behind the curves but I couldn't find the answer.
So far I could only state the equations as this: (I'm using $v_{r}=\textrm{orange car}$ and $v_{b}=\textrm{blue car}$
$v_{r}=8$
$v_{b}=t-5$
Since $v=\dfrac{dx}{dt}$
Then:
$\dfrac{dx}{dt}=8$
$x(t)=8t+c$
$x(0)=0\,, c=0$
$x(t)_{r}=8t$
$\dfrac{dx}{dt}=t-5$
$x(t)=\frac{t^2}{2}-5t+c$
$x(0)=0\, c=0$
$x(t)_{b}= \frac{t^2}{2}-5t$
So by equating both I could obtain the time isn't it?.
$8t=\frac{t^2}{2}-5t$
$0=\frac{t^2}{2}-13t$
$0=t(t-26)$
So time would be $26\,s$ But it doesn't seem to be in any of the alternatives given. Could it be that I'm not getting the right picture of this problem correctly?. Can somebody give me a help?.

The mistake in your computations is that for the second care you set $x(0)=0$. You should have $x(5)=0$
Note that for the second car you have $x'(t)=0$ when $0 \leq t \leq 5$ and $x'(t)=t-5$ when $t \geq 5$. You need to either start your computations at $t_0=5$ or treat this as a piecewise function.
Hint Alternatelly, the areas below the graphs represent the distance traveled. You want the two area below the graph to be equal.
It $t$ is the moment they meey, the area below the first graph is $A=8t$. The area below the second graph is $\frac{1}{2} (t-5)^2$. Make them equal.