A total of 40 parents volunteered to bring a cake for the Holiday fair.Of the 40 volunteers that brought cake,10 of them brought two cakes. Out of all the cakes at the holiday Fair , 30% were chocolate. How many cakes were chocolate?