The hardware store sells orange buckets, which hold 10 liters of water, and teal buckets, which hold 3 liters. Alec bought 14 buckets. His buckets will hold 70 liters in total. How many of each type of bucket did Alec buy?