The coordinate 6 has a weight of 1, the coordinate
8 has a weight of 3, and the coordinate 10 has a
weight of 1.

Find the weight average

I NEED help