You are painting pictures to sell and are working with the following constraints:
• It takes 3 h to paint a small picture.
• It takes 5 h to paint a large picture.
• You want to spend no more than 48 h painting.
• You sell the small pictures for $12.
• You sell the large pictures for $22.
How many of each picture size should you paint to maximize your earnings?