While doing some work, the efficiency of A is equal to the average of the efficiency of C and twice the efficiency of B. The efficiency of B is equal to the average of the efficiency of C and half the efficiency of A. What is the ratio of the efficiencies of A and B?