Number of persons between A and C = 25 - 18 = 7
∴ The position of C from front = 18 + 7 = 25th
Also, number of persons between C and B = 7
∴ The position of C from the back = 16 + 7 = 23rd
∴ Total number of persons = position of C from front + position of C from back -1
25 + 23 - 1 = 47
Hence, the required answer is (3)