I am trying to align a set of equations using the right braces.
A similar question is asked here Align multiple equations within right braces
In my case, I would like to use also subequations to get (1a) and (1b).
Till now I was using rcases and the code was similar to this:
\documentclass{article}
\usepackage{mathtools}
\begin{document}
\begin{subequations}
\begin{align}
&\begin{rcases}
a &= b + c \\
d &= e + f + g \\
h &= i + j + k + l\\
\end{rcases}&& \quad\text{three equations}\\
& \begin{rcases}
m &= n \\
o &= p*q
\end{rcases}&& \quad\text{another two equations}
\end{align}
\end{subequations}
\end{document}
The following picture indicates with red the changes I would like to have.


