A bag contains red, blue and purple marbles, and does not contain any other marbles. The ratio of the number of red marbles to the number of blue marbles is 4:7. The ratio of the number of blue marbles to the number of purple marbles is 2:3. There are 32 red marbles in the bag. In total, how many marbles are there in the bag?
Answer Choices
A. 162
B. 129
C. 176
D. 164
E. 172