The price of a bag of candy is a linear function of the amount of candy in the bag. A bag containing 25 pieces costs $0.99 and a bag containing 100 pieces costs $3.99. How much candy is contained in a bag that costs $5.99?