Since the density of gold is greater than silver, hence, the weight of a similar volume of gold will be greater than that of silver. But, in the given case, both solids show similar weight in the water, which means the volume of silver must be greater than that of gold because the more the volume, the more the upthrust will be required. When weighed in air, the silver piece will weigh more because of its greater volume