find the molecular formula of the following

magnesium sulphate=(24*1)+(32*1)+(16*4)=120 water=H2O=(1*2)+(1*16)=18 carbon dioxide=CO2=(12*1)+(16*2)=44 ammonia=NH3=(14*1)+(1*3)=17 alminiumsulphate=AL2(SO4)3=(26*2)+(32*3)+(12*16)=340 hydrogen peroxide=H2O2=(1*2)+(16*2)=34 zinc sulphate=ZNSO4=(65*1)+(32*1)+(16*4)=161