Kymani has two equal-sized large pitchers and two equal-sized small pitchers. All of the pitchers together hold 40 cups of water. The capacity of one large pitcher minus the capacity of one small pitcher is 12 cups. How many cups can each type of pitcher hold?