Weighted mean formulae

here why are we not dividing by total frequency,it comes in weighted mean formulae

Try writing 0.3 and 0.7 as fractions.