Find the missing number, if a certain rule is followed in all the three figures.(IMO 2015) A8 B9 C12 D13