\documentclass{article}
\usepackage[margin=1in]{geometry}
\usepackage{amsmath,amsthm,amssymb,amsfonts, fancyhdr, color, comment, graphicx, environ}
\usepackage{xcolor}
\usepackage{mdframed}
\usepackage[shortlabels]{enumitem}
\usepackage{indentfirst}
\usepackage{hyperref}
\renewcommand{\footrulewidth}{0.8pt}
\hypersetup{
colorlinks=true,
linkcolor=blue,
filecolor=magenta,
urlcolor=blue,
}
\pagestyle{fancy}
\newenvironment{problem}[2][Problem]
{ \begin{mdframed}[backgroundcolor=gray!20] \textbf{#1 #2} \\}
{ \end{mdframed}}
\newenvironment{solution}{\textbf{Solution}}
\lhead{Your Name}
\rhead{Course and course number or section}
\chead{\textbf{Title of this document}}
\lfoot{Instructor Name}
\rfoot{Texas State University}
\begin{document}
\input{coverPage}%not necessary but looks fancy
\begin{problem}{1}
Question begins here.
\end{problem}
\begin{solution}
Solution begins here
\end{solution}
\end{document}