added problem 31, coins sum