I\'ve managed to get close, as I\'m able to get the total to correctly sum up each individual group, my issue is with getting the total to appear at the end of each group, below