There are 27 red or blue marbles in the bag. The number of red marbles is 5 less than 3 times of the blue marbles. How many red marbles are in the bag? How many blue marbles are in the bag?