You might want to read this link: Please Help Us to Help You...
If you wnated just one or the other, just a break down by gender or a break down by age group, a simple summary report with the proper sub summary layout part and a summary field can produce what you want.
Putting both on the same page, however, totals the same set of records in two different ways. That would require a different approach, such as a pair of portals in versions FMP 11 or older or with large, multi-row calculation fields using ExecuteSQL in FileMaker 12.
Filemaker Pro 11 on XP Pro Sgl User Relative Newbie
Looks like I'll export & import data into access - its easy there with a union query on a summary query.
A Pair of portals can make this work for you in FileMaker, one for the first pair of gender based totals and one for the second set of age group based totals.
But a key question is whether or not you need to specify other criteria in addition to the gender and age groups--such as specifying a particular date range.