I want to solve the following system for $t_1 + t_2$.
$$ v_f=v_i + a(t_1-t_2) $$ $$x_f=x_i+v_i(t_1+t_2)+\frac{1}{2}a(t_1^2−t_2^2)+at_1t_2$$
I've tried solving for $t_1$ and substituting, but the equations get so complex that I don't trust myself to do every step correctly.
Here is the related question on Physics Stackexchange: How long does it take to optimally change position and velocity?

Hint: Observe that $t_1t_2 = \dfrac{(t_1+t_2)^2-(t_1-t_2)^2}{2}$. Thus this allows you to substitute $u = t_1+t_2, v= t_1-t_2$. Can you continue?