def METHOD_NAME(scores):
    score_total = 0
    weight_total = 0
    for score, weight in scores:
        score_total += score * weight
        weight_total += weight
    return score_total / weight_total