I would like to create a exercises&solutions math's sheet for my students.
I would love to be able to insert each exercise and solution in one section like :
\begin{exercise)
$(2x-3)^2-(3x+2)^2=$
\end{exercise)
\begin{solution)
$-(x+5)(5x-1)$
\end{solution)
and to be able to have that kind of rendering when compiling :
I looked at some packages here but I couldn't find exactly what I wanted.
Do you have some advices for me ?


sagetexpackage as it can do the algebra problems. This makes it less likely that there is a mistake in your answer key. See, for example, the selected answer to the question here. – DJP Dec 21 '18 at 16:53