\[\left\{ \begin{matrix}
x + y = 5\ \ \ \\
3x + y = 7 \\
\end{matrix} \right.\ \text{\ \ \ \ \ }\]
\[\left\{ \begin{matrix}
y = 5 - x\ \ \ \ \ \ \ \ \ \ \\
3x + 5 - x = 7 \\
\end{matrix} \right.\ \text{\ \ \ \ \ \ }\]
\[\left\{ \begin{matrix}
y = 5 - x \\
2x = 2\ \ \ \ \ \ \\
\end{matrix} \right.\ \text{\ \ \ \ }\]
\[\left\{ \begin{matrix}
x = 1\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \\
y = 5 - 1 = 4 \\
\end{matrix} \right.\ \]
\[Проверка:\ \]
\[\left\{ \begin{matrix}
1 + 4 = 5\ \ \ \ \ \ \\
3 \cdot 1 + 4 = 7 \\
\end{matrix} \right.\ \text{\ \ \ \ \ \ }\]
\[\left\{ \begin{matrix}
5 = 5 \\
7 = 7 \\
\end{matrix} \right.\ \Longrightarrow верно.\]
\[Ответ:(1;4).\]