A bag contains green marbles and red marbles, 47 in total. The number of green marbles is 5 more than 2 times the number of red marbles. How many green marbles are there?