Bob and John went to the candy store. Bob bought 5 pieces of fudge and 3 pieces of bubble gum for a total of $5.25. John bought 2 pieces of fudge and 3 pieces of bubble gum for a total of $3.00. What was the cost of the fudge and the gum?