At a pumpkin stand, Fei bought 3 pumpkins: one large, one medium, and one small. The large pumpkin cost twice as much as the medium one, and the medium pumpkin cost three times as much as the small one. Fei spent $20 in total. How much did the large pumpkin cost?