Let his earnings from first song be x

Since the earnings from second song is 5 times the earnings from first song, hence earning from second song = 5x

Hence total earnings = x+5x=6x

Since he donated all of his earnings to charity and he donated 864 altogether, hence

6x=864

x=144

Amount of money second song earn more than first song = 5x — x = 4x = 4(144) =576

Since the earnings from second song is 5 times the earnings from first song, hence earning from second song = 5x

Hence total earnings = x+5x=6x

Since he donated all of his earnings to charity and he donated 864 altogether, hence

6x=864

x=144

Amount of money second song earn more than first song = 5x — x = 4x = 4(144) =576