\documentclass[12pt,fleqn]{report} 

\usepackage{palatino}
\usepackage{epsfig}

\pagestyle{empty} %%% this results in no pagenumbers (footer is empty}

\addtolength{\oddsidemargin}{-1.0in}
\addtolength{\evensidemargin}{-1.0in}
\addtolength{\textwidth}{1.5in}
\addtolength{\topmargin}{-0.5in}
\addtolength{\textheight}{1.0in}

\baselineskip=20pt

\newcommand{\dsps}{\displaystyle}
\newcommand{\pp}{\par \noindent}
\newcommand{\newp}{\vfil \eject}
%\newcommand{\newp}{\bigskip}

\begin{document}

\noindent
\vfil \noindent
\large
\hfil Math 120 A - Spring 2008 \hfil \pp
\hfil Mid-Term Exam Number One\hfil  \pp
\hfil April 24, 2008 \hfil \pp
\hfil Answers \hfil \pp

\normalsize
\vfil

Version A (in problem 1, you start 12 km East, 8 km North)

\begin{enumerate}

\item 3.12276 hours

\item 
\[
D(t)=\left \{ \begin{array}{ll}
5t & \mbox{if $0 \le t \le 40$,} \\
\sqrt{200^2 + (4(t-40))^2} & \mbox{if $40 \le t \le 70$,} \\
\sqrt{120^2+(200-3(t-70))^2} & \mbox{if $70 \le t \le 170$} 
\end{array}
\right.
\]


\item $\dsps \frac{5000}{17} = 294.1176...$ square feet

\item 
\begin{enumerate}
\item
\[
f(g(x))=\left \{ \begin{array}{ll}
-1-x & \mbox{if $x \le 3$,} \\
5-3x & \mbox{if $x >3$}
\end{array}
\right.
\]

\item $x=-2$ is the only solution.

\end{enumerate}

\end{enumerate}

Version B (in problem 1, you start 14 km East, 6 km North)

\begin{enumerate}

\item 2.178498 hours

\item 
\[
D(t)=\left \{ \begin{array}{ll}
4t & \mbox{if $0 \le t \le 40$,} \\
\sqrt{160^2 + (6(t-40))^2} & \mbox{if $40 \le t \le 60$,} \\
\sqrt{120^2+(160-5(t-60))^2} & \mbox{if $60 \le t \le 140$} 
\end{array}
\right.
\]

\item $\dsps \frac{12800}{17}=752.941...$ square feet

\item 
\begin{enumerate}
\item
\[
f(g(x))=\left \{ \begin{array}{ll}
1-x & \mbox{if $x \le 3$} \\
7-3x & \mbox{if $x >3$}
\end{array}
\right.
\]

\item $x=2$ is the only solution.

\end{enumerate}

\end{enumerate}


\end{document}


% \epsfig{file=pizza01.eps, 
% width=11cm,
% angle=0 }