\setupbodyfont[12pt]


\setuppagenumbering[location={footer,middle},way=bytext]


\setuppapersize[letter][letter]

\setuphead		[section]
				[numberstyle=bold,
				page=yes,
				continue=no
]


\defineenumeration
[exercise]
[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]

\setupinteraction
[state=start]

\starttext

\section{Main Text}

\subsection[subsec:1]{problem section 1}


\startexercise[ex:1] 
Addition\index{addition} problem: $1+1=?$
(\in{solution}[sol:1])
\stopexercise

\beginsolution
\startsolution[sol:1]
Answer: 2.
(\in{problem}[ex:1])
\stopsolution
\endsolution

\subsection[subsec:2]{problem section 2}


\startexercise[ex:2] 
Multiplication problem: $1\times1=?$
(\in{solution}[sol:2])
\stopexercise

\beginsolution
\startsolution[sol:2]
Answer: 1.
(\in{problem}[ex:2])
\stopsolution
\endsolution



\section{Answers to the Problems}
\subsection{Answers to \in{section}[subsec:1]}
\reset[solution] 
\useblocks[solution] 

\subsection{Answers to \in{section}[subsec:2]}

How to place?

\stoptext
