Let's start by obtaining the state space form of the closed-loop system (closed loop means that you plug in the equations the expression of the controller). The controller of this specific system has the following form:
$$ u = -Kx+r $$
This is a full state feedback controller with feedforward gain of $1$ (feedforward is the gain by which the input signal is being multiplied). So, the state space equations are now:
$$ \dot{x} = (A-BK)x+r $$
$$ y = Cx $$
Since the system is a classic linear one, convert it into the corresponding $\text{s-domain}$ representation aka transfer function. The transformation from state space to transfer function is:
$$ \frac{Y(s)}{R(s)} = c(sI-(A-BK))^{-1}B $$
Plugging in the values of the matrices and doing the math (I leave them for you) but leaving the gain vector as $K =\begin{bmatrix} k_1 & k_2 \end{bmatrix}$ yields the following closed loop transfer function of the system:
$$T(s) = \frac{Y(s)}{R(s)} = \frac{1}{s^2+(7+k_1)s+(10+k_2)} $$
In order for the steady state error to be $e_{ss}=0$, we impose the requirement for the DC gain of the system to be equal to $1$. This is derived from the final value theorem:
$$ \lim_{t \to \infty}{y(t)} = \lim_{s \to 0}sY(s) $$
and in order to achieve satisfactory tracking we want :
$$ sY(s) \approx sR(s) \text{ as } s\rightarrow0 \Rightarrow \left. \frac{Y(s)}{R(s)}\right\vert_{s=0} = 1 $$
The DC gain of the system is the value by which the input of the system is multiplied (and produces the output) as $t \rightarrow \infty$ or in $\text{s-domain}$ notation as $s\rightarrow 0$. Inserting the value $s=0$ into the closed loop transfer function results to:
$$\left. \frac{Y(s)}{R(s)}\right\vert_{s=0} = \frac{1}{10+k_2} = \text{DC-Gain} $$
And as stated above, we want:
$$ \text{DC-Gain}=1 \Rightarrow \frac{1}{10+k_2} = 1 \Rightarrow k_2 = -9 $$
Obviously, only the gain $k_2$ influences the steady state error of the system. You can verify that by noticing that at the denominator of the closed loop transfer function the gain $k_1$ belongs to the expression which is multiplied by $s$ and as a result at steady state ($s\rightarrow 0$) this expression will vanish.
However, you can't conclude that any value of $k_1$ will be ok because you have to consider the stability of the system. In order for a second order system to be stable the coefficients of the characteristic polynomial (denominator of closed loop transfer function) have to be positive:
$$ 7+k_1 > 0 \Rightarrow k_1 > -7 $$
$$ 10 + k_2 > 0 \Rightarrow k_2 > -10 $$
Even though, you only have one possible choice where $k_2=-9$, it is always good to check everything that's essential for your system to function properly, Stability is, if not the most, among the most important characteristics.
To sum up, the final closed loop transfer function is:
$$ T(s) = \frac{1}{s^2+10s+1} $$
Notice that if you put $s=0$ at this equation you get:
$$\left. T(s)\right\vert_{s=0} = \frac{1}{1} = 1 = \text{DC-Gain} $$
which yields $e_{ss} = 0$ and a stable system with negative poles at $p=\begin{bmatrix}-9.899 & -0.1010\end{bmatrix}^T$. The step response of the system proves them also graphically: