Represent 500 grams as a fraction of one kilogram. (1kilogram = 1000 grams)
12
1 kg = 1000 g
Hence, 500 grams as a fraction of 1 kg = 5001000
By cancelling zeros we get,
510=12 (reducing to its lowest terms by dividing numerator and denominator by 5)