Let the motion group of $\mathbb{R}^{2}$, that is the group pf affine linear transformations of the form
$$(x,y) \mapsto (x\cos\theta - y\sin\theta + a\,,\, x\sin\theta + y\cos\theta + b)$$
The motion group $G$ can be identified with the subgroup $G$ of $GL(3, \mathbb{R})$, whose elements are matrices
$$\begin{pmatrix} \cos\theta & -\sin\theta & a \\ \sin\theta & \cos\theta & b \\ 0 & 0 & 1 \end{pmatrix}$$
Why is $G$ a closed subgroup of $GL(3, \mathbb{R})$ and why is the Lie algebra of $G$
$\frak{g}$ = $\left\lbrace \begin{pmatrix} 0 & -a & b \\ a & 0 & c \\ 0 & 0 & 0 \end{pmatrix} : a,b,c\in\mathbb{R} \right\rbrace$ ?
To answer your first question, if $\vec{t}=(t_1,t_2)$ and $$ T(\theta, \vec{t}):=\begin{pmatrix} \cos\theta & -\sin\theta & t_1 \\ \sin\theta & \cos\theta & t_2 \\ 0 & 0 & 1 \end{pmatrix}, \quad R_\theta:= \begin{pmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{pmatrix} $$ Show that $T(\phi, \vec{s})T(\theta, \vec{t})=T(\theta+\phi, R_\phi\vec{t}+\vec{s})$. This takes care of $G$ being a closed subgroup of $GL(3,\mathbb{R})$.
To find the generators of the Lie algebra of a matrix Lie group $G$, one needs to find an "infintesimal'' transformation. Let $\epsilon_1, \epsilon_2, \epsilon_3>0$ be a "small" real number. Then $$ T(\epsilon_1, \epsilon_2, \epsilon_3)= I_3+ \begin{pmatrix} 0 & -\epsilon_1 & \epsilon_2 \\ \epsilon_1 & 0 & \epsilon_3 \\ 0 & 0 & 0 \end{pmatrix}+O(\epsilon^2) $$ where $I_3$ is the identity matrix. This should be enough to convince you why the Lie algebra is $$ \mathfrak{g}=\left\{\begin{pmatrix} 0 & -\theta & a \\ \theta & 0 & b \\ 0 & 0 & 0 \end{pmatrix}: \theta,a,b\in \mathbb{R}\right\} $$