     
\documentclass[addpoints]{exam}
    


\usepackage{amsfonts}
\usepackage{amsmath}
\sloppy


\begin{document}

  \pagestyle{headandfoot}
  \runningheadrule
  \firstpageheader{ Math 15A }{ Homework 5 }{ March 1, 2019 }
  \runningheader{ Math 15A }{ Homework 5, Page \thepage\ of \numpages}{ March 1, 2019 }

  \firstpagefooter{}{}{}
  \runningfooter{}{}{}
  \begin{flushright}
    \makebox[0.4\textwidth]{Name: \enspace\hrulefill}

    \vspace{0.2in}
    \makebox[0.4\textwidth]{Pid:\enspace\hrulefill}
  \end{flushright}

  \begin{questions}
    \question[10]
      Construct a bijection from $[n] \times \{0, 1\}$ to $[2n]$, where $n$ is some
			positive integer.

      \begin{solution}[\stretch{1}]
      \end{solution}
      \newpage
    \question[10]
      Show that there is a bijection from
			$\{(A, B) ~:~ A, B \in 2^{[n]} \text{ and } A \cap B = \emptyset \}$ to
			$\{0, 1, 2\}^n$, where $n$ is some positive integer.

      \begin{solution}[\stretch{1}]
      \end{solution}
      \newpage
  \end{questions}
\end{document}