Henry made 30 cookies for the bake sale. He ate 1/3 of them as they came out of the oven. He then had to bake 20 more cookies. At the sale, he sold 1/2 of them. How many cookies are left?