Inside a bag of candy there are 16 lollipops, 12 pieces of chocolate, and 7 pieces of licorice. If you reach in the bag and grab a piece of candy, what is the probability that it will be either a piece of chocolate or a lollipop?