Maths homework problem, David eats half his sweets and then buys 16 more. He now has 36 how many did he have to start with?