A chemistry teacher needs to mix a 30% salt solution with a 70% salt solution to make 20 qt of a 40% salt solution. How many quarts of each solution should the teacher mix to get the desired result?