A is two years older than B who is twice as old as C. If the total age of A, B and C is 27, then how old is B?