Randy donated 1/6 of his savings to charity and spent the rest of gifts for 3 friends. If each friend received a gift worth $10 how much money did he donate?