Sara opened up a bakery this summer. The number of cupcakes she sells per day can be represented by x. The number of pies she sells per day is half the number of cupcakes she sells. The total number of pies and cupcakes she sells per day is 48.​ What is x, the number of cupcakes she sells per day?