\documentclass{article}

\usepackage[T2A]{fontenc}
\usepackage[russian,english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{amsmath,amssymb}
\usepackage{tikz}

\begin{document}

\pagestyle{empty}

\def\dx{7}
\begin{tikzpicture}
	\node[circle,draw] (a1) at (2.1,2) {$3$};
	\node[circle,draw] (a2) at (2.9,2) {$7$};

	\node[circle,draw] (b1) at (0,0) {$1$};
	\node[circle,draw] (b2) at (0.7,0) {$2$};

	\node[circle,draw,red,thick] (c1) at (1.8,0) {$4$};
	\node[circle,draw,red,thick] (c2) at (2.5,0) {$5$};
	\node[circle,draw,red,thick] (c3) at (3.2,0) {$6$};

	\node[circle,draw] (d1) at (4.3,0) {$8$};
	\node[circle,draw] (d2) at (5,0) {$9$};

	\draw[->] (1.7,1.9) -- (b2);
	\draw[->] (2.5,1.9) -- (c2);
	\draw[->] (3.3,1.9) -- (d1);


	\node[circle,draw] (a1) at (\dx+1.8,2) {$3$};
	\node[circle,draw] (a2) at (\dx+3.2,2) {$7$};

	\node[circle,draw] (b1) at (\dx+0,0) {$1$};
	\node[circle,draw] (b2) at (\dx+0.7,0) {$2$};

	\node[circle,draw,red,thick] (c1) at (\dx+1.8,0) {$4$};
	\node[circle,draw,red,thick] (c2) at (\dx+2.5,2) {$5$};
	\node[circle,draw,red,thick] (c3) at (\dx+3.2,0) {$6$};

	\node[circle,draw] (d1) at (\dx+4.3,0) {$8$};
	\node[circle,draw] (d2) at (\dx+5,0) {$9$};

	\draw[->] (\dx+1.4,1.9) -- (b2);
	\draw[->,red,thick] (\dx+2.2,1.8) -- (c1);
	\draw[->,red,thick] (\dx+2.8,1.8) -- (c3);
	\draw[->] (\dx+3.6,1.9) -- (d1);

\end{tikzpicture}

\end{document}
