A bag contains only red, blue, and green marbles. The probability of selecting a blue marble from the bag is , and the probability of selecting a green marble from the bag is . If there are a total of 48 marbles in the bag, how many red marbles are in the bag?