Ryan had some candy to give to his five children. He first took three pieces for himself and then evenly divided the rest among his children. Each child received two pieces. With how many pieces did he start?