500
On Halloween, Brandon went trick-or-treating. At the first house, he was given 11 pieces of candy. At the second house, he was given 27 pieces of candy. On his way home, his candy bag broke, and he lost 14 pieces of candy. How much candy did he have at the end of the night?
24 pieces of candy