Let the number of 1 rupee , 2 rupee and 5 rupee coins be x, y and z respectivelyAt the grocery store he gives half of his 5 Rupee coins and in return receives the same number of 1 Rupee coins i.e z now become 0.5z and x now becomes x+0.5zAt the dairy store he gives all 2 Rupee coins and in return gets thirty 5 Rupee coins which increases the number of 5 Rupee coins to 75% more than the original number i.e now y = 0 and 0.5z=0.5z+30Also given 0.5z+30=1.75zi.e. z=24Also given that number of 1 Rupee coins now is 50 i.e. x+0.5z=50i.e. x=38Therefore the number of 1 Rupee and 5 Rupee coins originally were 38 and 24 respectively.Therefore our answer is Option 'D'