How To Get The General Weighted Average