How it’s written=GROUPBY(row_fields, values, function, [field_headers], [total_depth], [sort_order], [filter_array], [field_relationship])
Groups rows and summarises values (like a quick PivotTable). Arguments in [brackets] are optional.
10 points for a first try without hints, 5 otherwise.