\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}{P}}
\chead{\raisebox{0.5cm}{\Huge Bernoulli Trials}} % (add title text if you want)
\rhead{\resizebox{!}{2cm}{P}}
\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}}} 
&$ n = 2 $\\
&$ p = 0.50 $\\
&$ k = 1 $\\
&\\
&\\
\end{tabular}

% -------- Abstract -------------------
\begin{tabular}{m{1.2in} m{4in}}
\multirow{5}{*}{\fbox{\includegraphics[width=1in]{images/abstract.png}}} 
&$ P(X = k) = \binom{n}{k}(p)^k(1-p)^{\,n-k} $\\
&$ P(X = 1) = \binom{2}{1}(0.50)^1(0.50)^{1} $\\
&$ P(X = 1) = 2 \times 0.50 \times 0.50 $\\
&$ P(X = 1) = \boxed{0.50}$\\
&\\
\end{tabular}


% -------- Question -------------------
\begin{tabular}{m{1.2in} m{4in}}
\multirow{5}{*}{\fbox{\includegraphics[width=1in]{images/question.png}}} 
&$n=100$\\
&$p=0.02$\\
&$P(X=2|X\le2)=?	$\\
\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}}} 
&$n=100$\\
&$p=0.02$\\
&$P(X=2|X\le2)=?	$\\
&\hrule\\
&\\
&$P(X=2 \mid X\le2)= \frac{P(X=2)}{P(X\le2)}$\\
&\\
&$P(X=2 \mid X\le2)= \frac{P(X=2)}{P(X=0)+P(X=1)+P(X=2)}$\\
&\\
&$P(X=0) = (0.98)^{100}$\\
&\\
&$P(X=1) = \binom{100}{1}(0.02)(0.98)^{99} = 100\cdot0.02\cdot(0.98)^{99}$\\
&\\
&$P(X=2) = \binom{100}{2}(0.02)^2(0.98)^{98} = 4950\cdot(0.02)^2\cdot(0.98)^{98}$\\
&\\
&$P(X=0)\approx0.1329$\\
&\\
&$P(X=1)\approx100\cdot0.02\cdot\frac{0.1329}{0.98}\approx0.2712$\\
&\\
&$P(X=2)\approx4950\cdot0.0004\cdot\frac{0.1329}{0.98^2}\approx0.2741$\\
&\\
&$P(X\le2)\approx0.1329+0.2712+0.2741=0.6782$\\
&\\
&$P(X=2\mid X\le2)\approx\frac{0.2741}{0.6782}\approx\boxed{0.404}$\\
\end{tabular}
\end{table}
\end{document}