Okay so this heavily depends on the possibility of a team's score being negative but something like
[(team 1 score + team 2 score)/(2 x winning team score)] x n
where n is the number of points awarded for the win/loss in this situation as previously outlined depending on the stage/tournament