Irena is putting together 6 goodie bags with chocolate and hard candy for her birthday party. She puts 4 pieces of hard candy in each goodie bag. Once she is done, she has placed a total of 42 items in bags.
How many pieces of chocolate did she put in each goodie bag?