a high school band held a bake sale. The number of cupcakes sold was four more than twice the number of cookies sold. The band sold a total of 52 cupcakes and cookies. How many cupcakes were sold?