A bakery sells three kinds of cakes: chocolate, vanilla, and strawberry. In one day, they sold 50 cakes. They sold twice as many vanilla cakes as chocolate cakes. They sold 10 more strawberry cakes than chocolate cakes. How many chocolate cakes did they sell?