Reasoning » Missing Number

Study the given pattern carefully and select the number from among the given options that can replace the question mark (?) in it.

24 36 32
6 3 ?
12 2 24
12 54 24

A

29

B

15

C

18

D

10