A bag contains purple marbles and yellow marbles, 52 in total. The number of purple marbles is 4 more than 3 times the number of yellow marbles. How many purple marbles are there?