% begin preamble
\documentclass{article}
%The following loads some packages that I commonly use in LaTeX for various math operations, fonts, etc.; you can remove or add packages as you see fit. 
\usepackage{sectsty} 
%\usepackage[utf8]{inputenc}
\usepackage{titlesec, blindtext,color}
%\usepackage[T1]{fontenc}
\usepackage{graphicx} %use for including graphics, such as diagrams or drawings
\usepackage{wrapfig}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{hyperref}
\usepackage{bm}
\usepackage{fancyhdr}
\usepackage[nottoc]{tocbibind}
\usepackage{cancel}
\usepackage[margin=1.1in]{geometry}
\usepackage{fancyhdr}
\pagestyle{fancy}
\newcounter{alphasect}
\def\alphainsection{0}
\titleformat{\subsection}[runin]
  {\normalfont\large\bfseries}{\thesubsection}{1em}{}
\titleformat{\section}
  {\normalfont\Large\bfseries}  
  {}                            
  {0pt}                          
  {Problem \thesection\quad}  
\theoremstyle{definition}
\newtheorem{exmp}{Example}[section]
\newtheorem*{remark}{Remark}
\newtheorem*{claim}{Claim}
\renewcommand{\thesubsection}{(\alph{subsection})}
\renewcommand*{\proofname}{\textbf{Solution}} %renames Proof to Solution
% end preamble

% Title and Header section
\title{Math 18 Summer Session 1, 2023: Homework n} %change n to current assignment number
\author{Your Name \\ PID: Axxxxxxxx} %edit your name and PID here
\rhead{Your name} %edit your name
\lhead{Math 18 Summer Session 1, 2023: Homework n} %change n to current assignment number
% (lhead and rhead are the left and right headers on subsequent pages) 

% Starts document, makes title with input above, and sets date
\begin{document}
\maketitle
\date

% Use "\section{"insert problem name here"}" to start a new problem
% Use \begin{proof} and \end{proof} to wrap your solution in
% If there are subsections to a problem, use \subsection{}, see Problem 3 below

\section{(Problem title, if applicable)} % Problem 1
Problem description (either copy from assignment or put in your own words).
\begin{proof}
Write Problem 1 solution here
\end{proof}

\section{(Problem title, if applicable)} % Problem 2
Problem description (either copy from assignment or put in your own words).
\begin{proof}
Write Problem 2 solution here
\end{proof}

\section{(Problem title, if applicable)} %Problem 3
Problem Description (either copy from assignment or put in your own words).
\newline
This example demonstrates subproblems, e.g.,
\subsection{} Subproblem (a) Description (either copy from assignment or put in your own words).
\begin{proof}
Write Problem 3 subproblem (a) solution here
\end{proof}
\subsection{} Subproblem (b) Description (either copy from assignment or put in your own words).
\begin{proof}
Write Problem 3 subproblem (b) solution here
\end{proof}

(etc., add more problem sections as necessary)

\end{document}