Bernie baked a berry pie. The recipe called for 5 ounces of blackberries, 8 ounces ofraspberries, and 9 ounces of strawberries. In the supermarket, he only found 12-ouncecontainers of berries. He bought 1 container of each kind of berry. After he baked the pie,how many ounces of berries did Bernie have left?