The least squares normal equations are
$$\mathbf X^\mathsf T\mathbf X\mathbf b = \mathbf X^\mathsf T\mathbf y \tag 1$$ and thus $$\text{(OLS)}: ~~\mathbf b =\left(\mathbf X^\mathsf T\mathbf X\right)^{-1}\mathbf X^\mathsf T\mathbf y. \tag 2\label 2$$
Putting $\mathbf y =\mathbf X \boldsymbol\beta+\boldsymbol\varepsilon $ in \eqref{2} yields
\begin{align}\mathbf b &=\left(\mathbf X^\mathsf T\mathbf X\right)^{-1}\mathbf X^\mathsf T(\mathbf X \boldsymbol\beta+\boldsymbol\varepsilon)\\ &= \left(\mathbf X^\mathsf T\mathbf X\right)^{-1}\mathbf X^\mathsf T\mathbf X \boldsymbol\beta+ \left(\mathbf X^\mathsf T\mathbf X\right)^{-1}\mathbf X^\mathsf T\boldsymbol\varepsilon\\&= \boldsymbol\beta + \left(\mathbf X^\mathsf T\mathbf X\right)^{-1}\mathbf X^\mathsf T\boldsymbol\varepsilon.\tag 3\label 3\end{align}
For the two-variable case, $\mathbf X = \begin{bmatrix}\mathbf 1 & \mathbf x\end{bmatrix}; $ so \begin{align}\mathbf X^\mathsf T\mathbf X &= \begin{bmatrix}\mathbf 1 ^\mathsf T\\\mathbf x^\mathsf T\end{bmatrix}
\begin{bmatrix}\mathbf 1 & \mathbf x\end{bmatrix} \\ &=\begin{bmatrix}n &\sum x_i\\\sum x_i& \sum x_i^2\end{bmatrix}.\tag 4\end{align}
And $$ \mathbf X^\mathsf T\boldsymbol\varepsilon =\begin{bmatrix}\sum \varepsilon_i\\ \sum x_i\varepsilon_i\end{bmatrix}.\tag 5$$
OP can complete the rest of the bookkeeping calculation to reach to the desired expression in league with \eqref{3}.