\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}{G}}
\chead{\raisebox{0.5cm}{\Huge Expected Value - Function}} % (add title text if you want)
\rhead{\resizebox{!}{2cm}{G}}
\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=1) = \frac{1}{30}$\\
&$P(X=2) = \frac{3}{10}$\\
&$P(X=3) = \frac{1}{2}$\\
&$P(X=4) = \frac{1}{6}$\\
&$E(X)=?$\\
&$E(X^2)=?$\\
\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=1) = \frac{1}{30}$\\
&$P(X=2) = \frac{3}{10}$\\
&$P(X=3) = \frac{1}{2}$\\
&$P(X=4) = \frac{1}{6}$\\
&$E(X)=?$\\
&$E(X^2)=?$\\
&\hrule\\
&\\
&$E(X) = \sum x \cdot P(x)$\\
&$E(X) = 1 \cdot \frac{1}{30} + 2 \cdot \frac{3}{10} + 3 \cdot \frac{1}{2} + 4 \cdot \frac{1}{6}$\\
&$E(X) =  \frac{1}{30} + \frac{6}{10} + \frac{3}{2} + \frac{4}{6}$\\
&$E(X) = \frac{1}{30} + \frac{18}{30} + \frac{45}{30} + \frac{20}{30} = \frac{84}{30} = \boxed{\frac{14}{5}}$\\
&\hrule\\
&\\
&$E(X^2) = \sum x^2 \cdot P(x)$\\
&$E(X^2) = 1^2 \cdot \frac{1}{30} + 4 \cdot \frac{3}{10} + 9 \cdot \frac{1}{2} + 16 \cdot \frac{1}{6}$\\
&$E(X^2) = \frac{1}{30} + \frac{12}{10} + \frac{9}{2} + \frac{16}{6}$\\
&$E(X^2) = \frac{1}{30} + \frac{36}{30} + \frac{135}{30} + \frac{80}{30} = \frac{252}{30} = \boxed{8.4}$\\
\end{tabular}
\end{table}
\end{document}