Rhea is making gift bags for her friends' birthday party. She has x bags in total. If she puts 4 candies in each bag, she will use all her candies. If she puts 3 candies in each bag, she will have 6 candies left over. How many bags does Rhea have?