A bakery sold a total of 500 cupcakes in a day, and 5% of them were vanilla flavored. How many of the cupcakes sold that day were vanilla flavored?