in src/sal/utils/math.py [0:0]
def compute_weighted_pred(x: Dict[str, List[Any]], n: int) -> Dict[str, List[str]]:
preds = x[f"preds@{n}"]
scores = x[f"agg_scores@{n}"]
return {
f"pred_weighted@{n}": "\\boxed{"
+ find_answer_with_largest_sum(preds, scores)
+ "}"
}