A weighted average assigns different levels of importance to data points. It's calculated by multiplying each value by its weight,…