\documentclass{article}
\usepackage{graphicx}
\usepackage[colorlinks=true,urlcolor=blue,linkcolor=blue,citecolor=blue]{hyperref}%
\usepackage{fancyhdr}
\usepackage[margin=35mm]{geometry}
\usepackage{amsmath}

\newcommand{\fn}[1]{\mathrm{#1}}

\pagestyle{fancy}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}

\lhead{\sf Logic and Mechanized Reasoning}
\rhead{\sf Fall 2022}


\newcommand{\problem}[1]{\subsection*{Problem #1}}
\newcommand{\answers}[1]{{\Large Answers #1\\ \medskip}}
\newcommand{\student}[2]{by #1 #2\\ \medskip}

\begin{document}
\thispagestyle{fancy}
\bigskip

\begin{center}
\answers{X} % replace by assignment number
\student{Firstname}{Lastname} % replace by first name and last name
\end{center}

\problem{1}

This is an example answer.

\problem{2}

\problem{3}

\problem{4}

\problem{5}

\problem{6}

\end{document}
