The method for solving linear equations is always the same.
- Start by solving the homogeneous equation: $$X(n)+2X(n-1)-8X(n-2)=0$$
It has characteristic equation $x^2+2x-8=0\iff (x-2)(x+4)=0$
The roots are $2$ and $-4$ so the solution is $X_h(n)=a\times 2^n+b\times(-4)^n$.
- Find one particular solution for the RHS:
You have to view $10$ as $10\times 1^n$.
Since $1$ was not a root of the characteristic equation, you can search for a constant as well (else it would be a polynomial of degree $1$ or more).
So here: $X_p(n)=c\quad$ gives $\quad c+2c-8c=10\iff -5c=10\iff c=-2$
- Solve for the initial conditions
The general solution is $X(n)=X_h(n)+X_p(n)=a2^n+b(-4)^n-2$
$\begin{cases}X(0)=0=a+b-2\\X(1)=14=2a-4b-2\end{cases}\iff\begin{cases}a+b=2\\a-2b=8\end{cases}\iff\begin{cases}a=4\\b=-2\end{cases}$
Finally $$X(n)=4\times 2^n-2\times(-4)^n-2$$
Here is some details about finding the particular solution, i.e. to eliminate the RHS.
All linear equations with constant coefficients have solutions of homegeneous equation of the form $$X(n)=a r_1^n+br_2^n+cr_3^n+\cdots$$
Let assume the RHS is of the form $P(n)\alpha^n$
If $\alpha$ is not one of $r_1,r_2,r_3,\cdots$ then you can search for a particular solution $X(n)=Q(n)\alpha^n$ with $\deg(Q)=\deg(P)$
If $\alpha$ is one of the roots then search for $\deg(Q)=\deg(P)+1$
If it is a double root then serach for $\deg(Q)=\deg(P)+2$ and so on...
In our case the RHS was $10=10\times 1^n$ with $\alpha=1$
Since $1$ was not a root, we search for $Q(n)1^n$ with $\deg(Q)=\deg(10)=0$ which is just a constant polynomial, i.e. $X(n)=c$