pedro has twice as many carrots as Martha, who has the same number of carrots as Oliver. If Pedro gives 5 carrots to Oliver, then Martha has 3 times as many carrots as Pedro. How many carrots does Martha have?

a) 10
b) 6
c) 3
d) 2
K) 1