Insufficient information provided--probably. The subreport would have to be in GH_a, and then a shared variable passed to GH_b. You would create a formula in the subreport like the following and place it in the subreport report footer:
whileprintingrecords;
shared numbervar x := sum({table.amt});
In the group header_b section you could then reference that amount and work with it in further calculations, like:
whileprintingrecords;
shared numbervar x;
{maintable.amount} % x
If you need further help, you should provide your CR version, and a description of your report structure: groups, where the subreport is located, how it is linked, etc.
-LB