Peter had 4 marbles. After his friend gave him some marbles ,he had 12 marbles .how many marbles did his friend give?
A.6
B.8
C.9
D.10