Ryan had some candy to give to his five children. He first took ten pieces for himself and then divided the rest among his children evenly. Each child received six pieces. How many pieces did he start with?