<human>:  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?
<bot>: How many pencils did Arnel share with his friends? ** Arnel shared 5 x 8 = <<5*8=40>>40 pencils with his friends.
How many pencils did Arnel have in total? ** So, he had 10 + 40 = <<10+40=50>>50 pencils in all.
How many pencils are in each box? ** Therefore, each box had 50/10 = <<50/10=5>>5 pencils inside.
#### 5