The values given above seem to be the same. They are equal which can be proved when written in the same units. The values written in grams are as follows:
51.5 hectograms = 5,150 grams
51,500 decigrams = 5,150 grams
Hope this answers the question. Have a nice day.