The mother kept 27 x 1/3 = <<27*1/3=9>>9 pieces of sweets.

So there were 27 - 9 = <<27-9=18>>18 sweets that were divided between the 3 children.

The youngest child got 8/2 = <<8/2=4>>4 sweets.

So the eldest and the youngest got a total of 8 + 4 = <<8+4=12>>12 sweets.

Therefore, the second child gets 18 - 12 = <<18-12=6>>6 sweets.

# Answer

6
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
A mother buys a box of sweets. She kept 1/3 of the sweets and divided the rest between her 3 children. The eldest got 8 sweets while the youngest got half as many. If there are 27 pieces of sweets in the box, how many sweets did the second child gets?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
6
A mother buys a box of sweets. She kept 1/3 of the sweets and divided the rest between her 3 children. The eldest got 8 sweets while the youngest got half as many. If there are 27 pieces of sweets in the box, how many sweets did the second child gets?
train