A bag contains red marbles and blue marbles. The ratio of red marbles to blue marbles is 3 to 4. If there are a total of 49 marbles in the bag, how many marbles are red?