Amrit's teacher told him "Go to shop A and buy 3 chocolates. Then go to shop B and buy thrice the number of chocolates you have and eat 3 chocolates. Then go to shop C and again buy thrice the number of chocolates you have." What will be the number of chocolates left with Amrit at the end?
Number of chocolates Amrit has after going to shop A = 3
Number of chocolates Amrit has after going to shop B = 3 x 3 + 3 = 12
Number of chocolates Amrit has after shop B and eating 3 = 12 - 3 = 9
Number of chocolates Amrit has after going to shop C = 3 x 9 + 9 = 36
Hence, the number of chocolates Amrit has at the end is 36.