Arnel shared 5 x 8 = <<5*8=40>>40 pencils with his friends.

So, he had 10 + 40 = <<10+40=50>>50 pencils in all.

Therefore, each box had 50/10 = <<50/10=5>>5 pencils inside.

# Answer

5
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Arnel had ten boxes of pencils with the same number of pencils in each box.  He kept ten pencils and shared the remaining pencils equally with his five friends. If his friends got eight pencils each, how many pencils are in each box?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
5
Arnel had ten boxes of pencils with the same number of pencils in each box.  He kept ten pencils and shared the remaining pencils equally with his five friends. If his friends got eight pencils each, how many pencils are in each box?
train