\documentclass[12pt]{article}
\usepackage{amsmath, amssymb, graphicx, array, fancyhdr, unicode-math, multirow}

\DeclareMathOperator{\Var}{Var}
\DeclareMathOperator{\sd}{SD}
\DeclareMathOperator{\Pois}{Pois}
\DeclareMathOperator{\Bin}{Bin}
\DeclareMathOperator{\NegBin}{NegBin}
\DeclareMathOperator{\sech}{sech}


% Text: Calibri, all bold
\setmainfont{Calibri}
\renewcommand{\seriesdefault}{b}

% Math: choose a math font and visually embolden it
\setmathfont{TeX Gyre Termes Math}                  % base math font
\setmathfont[FakeBold=1.9]{TeX Gyre Termes Math}    % embolden; adjust 1.6–2.4

% header
\pagestyle{fancy}
\fancyhf{}
\lhead{\resizebox{!}{2cm}{C}}
\chead{\raisebox{0.5cm}{\Huge Expected Value - Function}} % (add title text if you want)
\rhead{\resizebox{!}{2cm}{C}}
\setlength{\headheight}{2.5cm}
\setlength{\headsep}{12pt} % space between header and body

\begin{document}
\thispagestyle{fancy}

% -------- PAGE 1 --------
\begin{table}[h!]
  \renewcommand{\arraystretch}{1.2}

% -------- Single -------------------
\begin{tabular}{m{1.2in} m{4in}}
\multirow{5}{*}{\fbox{\includegraphics[width=1in]{images/single.png}}} 
&$Y = 20 - 2X$\\
&$E(X) = 6$\\
&$E(Y) = ?$\\
&\\
&\\
\end{tabular}

% -------- Abstract -------------------
\begin{tabular}{m{1.2in} m{4in}}
\multirow{5}{*}{\fbox{\includegraphics[width=1in]{images/abstract.png}}} 
&$E(Y) = E(20 - 2X)$\\
&$E(20 - 2X) = E(20) - 2E(X)$\\
&$E(20) = 20$\\
&$E(Y) = 20 - 2(6) = 20 - 12 = 8$\\
&\\
\end{tabular}

% -------- Question -------------------
\begin{tabular}{m{1.2in} m{4in}}
\multirow{5}{*}{\fbox{\includegraphics[width=1in]{images/question.png}}} 
&$P(X=-3) = 0.1$\\
&$P(X=2) = 0.2$\\
&$P(X=3) = 0.1$\\
&$P(X=4) = 0.3$\\
&$E(F(X))=?$\\
\end{tabular}
\end{table}


% second page
\newpage
\thispagestyle{fancy}
\begin{table}[h!]
% -------- Answer -------------------
\begin{tabular}{m{1.2in} m{4in}}
\multirow{5}{*}{\fbox{\includegraphics[width=1in]{images/key.png}}} 
&$P(X=-3) = 0.1$\\
&$P(X=2) = 0.2$\\
&$P(X=3) = 0.1$\\
&$P(X=4) = 0.3$\\
&$E(F(X))=?$\\
&\hrule\\
&\\
&$F(-3) = P(X \le -3) = 0.1$\\
&$F(2) = P(X \le 2) = 0.1 + 0.2 = 0.3$\\
&$F(3) = P(X \le 3) = 0.1 + 0.2 + 0.1 = 0.4$\\
&$F(4) = P(X \le 4) = 0.1 + 0.2 + 0.1 + 0.3 = 0.7$\\
&\hrule\\
&\\
&$E(F(X)) = \sum_{x} F(x) \cdot p(x)$\\
&$E(F(X)) = F(-3)\cdot p(-3) + F(2)\cdot p(2) + F(3)\cdot p(3) + F(4)\cdot p(4)$\\
&$E(F(X)) = (0.1)(0.1) + (0.3)(0.2) + (0.4)(0.1) + (0.7)(0.3)$\\
&$E(F(X)) = 0.01 + 0.06 + 0.04 + 0.21 = \boxed{0.32}$\\
\end{tabular}
\end{table}
\end{document}