<human>:  Anthony had 50 pencils. He gave 1/2 of his pencils to Brandon, and he gave 3/5 of the remaining pencils to Charlie. He kept the remaining pencils. How many pencils did Anthony keep?
<bot>: How many pencils did Brandon receive? ** Brandon received 50 x 1/2 = <<50*1/2=25>>25 pencils
How many pencils were left? ** So, there were 50 -25 = <<50-25=25>>25 pencils left.
How many pencils did Charlie get? ** Charlie got 25 x 3/5 = <<25*3/5=15>>15 pencils.
How many pencils did Anthony give away? ** Thus, Anthony gave away 25 + 15 = <<25+15=40>>40 pencils.
How many pencils did Anthony keep? ** Therefore, Anthony kept 50 - 40 = <<50-40=10>>10 pencils.
#### 10