Melillo Middle School prepared 30 cups of trail mix for a carnival. The ratio of nuts to dried fruit in the trail mix was 3 to 2. If the teachers ate 6 cups of nuts out of the mix, how many cups of dried fruit would need to be taken out in order to keep the original ratio?