Kevin is preparing for a school event and needs to buy some supplies. He initially has $50. Kevin spends $8 on notebooks, and then he decides to buy some pens that cost $2 each. If he buys 'p' pens, how much money will he have left after these purchases?