It's an Age Problem
There are 3 brothers, Andrew, Bernard, and Charlie. Bernard's age is \(12\) years older than Andrew. Five years ago, the ratio between Bernard and Charlie's age was \(2:3\). 4 years after now, Charlie's age will be \(3\) times of Andrew's age one year before. What is the sum of their ages, when Andrew's age is 17?