Have you tried:
insert into table (team_id, score) values (1,NULL);
for inserting? And then a query like:
select id, sum(score), avg(score) from table group by id
SHOULD do the math right. But I don't use mysql, so if they get the math wrong, I don't know what to tell you other than to swtich to Postgresql. Which I know gets the math right.