How To Solve General Weighted Average