Quiz Scoring System using api on a list

Hi everybody,

I’m currently retrieving a list of raw score results where each score has a tag. I want to create/modify a list of tags where each tag’s score is the average of all the score results that have a similar tag.

Raw list:
tag = math | Score =2
tag = math | Score =4
tag = english | Score =5
tag = english | Score =3

Calculated list:
tag = math | Avg score = 3
tag = english | Avg score = 4

Currently running an api on a list, trying to compare the tags to calculate the average but can’t seem to configure it to calculate average on 2 separate lists

Any help is appreciated