HI the your projecet is interesting.
I give you exemple code latex initial source in tex file:
\RequirePackage[l2tabu, orthodox]{nag}
\documentclass[12pt, answers]{exam}
\usepackage{amsmath, amsthm, amsfonts, amssymb, mathtools}
\usepackage{array}
\usepackage{booktabs}
\usepackage{biblatex}
\usepackage{color}
\usepackage{comment}
\usepackage{fixltx2e}
\usepackage[T1]{fontenc}
\usepackage[a4paper]{geometry}
\usepackage[pdftex]{graphicx}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{listings}
\usepackage{microtype}
\usepackage{multirow}
\usepackage{pdfpages}
\usepackage{pgfplots}
\usepackage{tikz}
\usepackage{siunitx}
\usepackage{tabularx}
\usepgfplotslibrary{statistics}
\DeclareGraphicsExtensions{.pdf,.png,.jpg}
\qformat{\textbf{Q5.\thequestion} \hfill}
% Centering columns
\newcolumntype{C}{>{\centering\arraybackslash}X}
\begin{document}
\textbf{Exploring Bivariate Data}
\begin{questions}
%----------------------------- Question 1 ----------------------------
\question
As a house owner you are very concerned with the value of your property. You have ordered appraisals over the last several months and are curious how the value changes with the number of homes on the market. You have the following data:
\begin{tabular}{| c | c |}
\hline
Number of Houses & House Value \\ \hline
1 & 190000 \\ \hline
1 & 200000 \\ \hline
3 & 185000 \\ \hline
4 & 172000