weighted average method problems and solutions pdf