Renee has a total of 12 cookies in chocolate chip and peanut butter, C + P = 12. The number of chocolate chip cookies is three times the number of peanut butter cookies, C = 3P. How many of each type of cookie does she have?