# Exercises with solutions math's sheet : packages or template advice needed

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 ?

• I'm not exactly sure, but isn't that just rendering inputted math, with two sections? Possibly making one section float to the left. – GrandFleet Dec 19 '18 at 19:34
• You should consider using the sagetex package 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