\setupbodyfont		[10pt]

\defineenumeration
[exercise]
[before=\blank,
after=\blank,
way=bysection,
text=Exercise,
start=1,
location=hanging,
letter=rm]

\defineenumeration
[solution]
[text=Solution,
way=bysection,
location=hanging,
letter=rm]

\defineblock[exercise]
\defineblock[solution]
\hideblocks[solution]

\starttext

\section{Addition}


\startexercise
$1+1=?$
\stopexercise

\beginsolution[one]
\startsolution
$1+1=2$
\stopsolution
\endsolution

\startexercise
$1+2=?$
\stopexercise
\beginsolution[one]
\endsolution

\startexercise
$2+2=?$
\stopexercise

\beginsolution[one]
\startsolution
$2+2=4$
\stopsolution
\endsolution

\section{Solutions to Selected Exercises from Chapter One}

\reset[solution]
\useblocks[solution][one]

\stoptext
