There are two red jars of marbles and one blue jar of marbles. Jars of a certain color have the same number of marbles in them. There are 37 marbles in total. The difference between the number of marbles in a red jar and the number of marbles in a blue jar is 8. Find the number of marbles in each type of jar.