The total weight of wheat and rice will be equal to the sum of the individual quantity of iteams purchased .
So,
Total weight =334+212
Total weight =3×4+34+2×2+12
=12+34+4+12
=154+52
=154+104 [Since LCM of (2,4)=4]
=15+104=254
Hence, the total weight of the iteams bought is equal to 254 or 614kg.