In a package of candy there is a total of 24 yellow pieces. For every 5 green pieces in the package, there are 8 yellow pieces. How many green pieces of candy are in the bag?