I have a bunch of exercises written up as seen in the image below. I'd like to write solutions for each exercise directly below where they are written in the .tex document. Then, I want those solutions to be displayed at the end of the document (see the image below). I'd like to achieve exactly the output of the images below. I'm struggling to achieve this. I researched and tried many packages, but nothing seems to fit exactly my formatting.
Here's the code for the first image. The in-line comments indicate how I want to specify each solution. I want the second image (the solutions) to be automatically generated.
\documentclass{article}
%%%%%%% Packages %%%%%%%
\usepackage[margin=0.75in]{geometry}
\usepackage{enumitem}
% Custom bolded enumerate environment.
\newenvironment{boenumerate}{\begin{enumerate}[label=\textbf{\arabic*.}]}{\end{enumerate}}
% A clearer method of resuming a numbered/lettered list (\seti and \conti).
\newcounter{saveenumi}
\newcommand{\seti}{\setcounter{saveenumi}{\value{enumi}}}
\newcommand{\conti}{\setcounter{enumi}{\value{saveenumi}}}
\usepackage{tasks} % Make horizontal lists.
\settasks{label={(\alph*)},
label-align=left,
label-offset={0mm},
label-width=25pt,
item-indent=25pt,
label-format={\bfseries},
after-item-skip=2mm,
after-skip={3mm}}
\usepackage{amsmath} % Math mode.
\begin{document}
\subsection*{Exercises}\addcontentsline{toc}{subsection}{Exercises}
\subsubsection*{The Tangent Line}
\begin{boenumerate}
\item Find the slope of the tangent line at the given point.
\begin{tasks}(2)
\task $f(x)=2x^3$,\quad $x=\tfrac{1}{3}$
%\solution{$f^\prime(x)=6x^2 \implies f^\prime(\tfrac{1}{3})=\tfrac{2}{3}$}
\task $y=(1-2x)(3x-4)$,\quad $x=2$
%\solution{$-13$}
\end{tasks}
\item Find the equation of the tangent line at the given point.
\begin{tasks}(2)
\task $y=2\sqrt{x}$, $(9,6)$
%\solution{$y=\tfrac{1}{3}(x-9)+6$}
\task $xy=1$, $\left(5,\tfrac{1}{5}\right)$
%\solution{$y=\tfrac{-1}{25}(x-5)+\tfrac{1}{5}$}
\end{tasks}
\item At what point on the parabola $y=4x^2$ is the slope of the tangent line equal to 4?
%\solution{$(\tfrac{1}{2},1)$}
\item Find the point on the curve $y=x\sqrt{x}$ where the tangent line is parallel to the line $6x-y=4$.
%\solution{$(16,64)$}
\seti
\end{boenumerate}
\subsubsection*{The First Derivative Test}
\begin{boenumerate}
\conti
\item Find the intervals of increase and decrease for the following functions.
\begin{tasks}(3)
\task $f(x)=3x^2-18x+1$
%\solution{Increasing: $(3,\infty)$; Decreasing: $(-\infty,3)$}
\task $f(x)=2x^3-9x^2-60x+82$
%\solution{Increasing: $(-\infty,-2)\cup (5,\infty)$; Decreasing: $(-2,5)$}
\end{tasks}
\end{boenumerate}
\end{document}