At a birthday party of 10 children, there were 40 chocolates kept for distribution. 15 more children joined the party and chocolates were bought from the shop. However, when 5 more children joined, the shop was closed, so the existing chocolates had to be distributed among all the children. How many chocolates did each child get?