Nilo received 10 + 10 = <<10+10=20>>20.
Thus, Ken gave a total of 10 + 20 = <<10+20=30>>30.
Therefore, Ken kept 50 - 30 = <<50-30=20>>20 pencils.
#### 20