weighted_average_problem