On a science quiz. Ivan earned 18 points.there are six problems worth 2 points each and two problems worth 4 points each. Find the numbers of problems of each type Ivan answered correctly.