A is three as old as B. C was twice -as old as A four years ago. In four years time, A will be 31. What are the present ages of B and C?