A sum of money is distributed among A,B and C such that A get double of C and B get average of A and B.Find the ratio in which the money is distributed?​