tyler has a bag of chips. after giving away 4 chips to a friend, he has 12 chips left. How many chips did he have to begin with?