Triangle ABC is isosceles with AB =BC . If angle B is twice the measure of angle A find the measure of all the angles of the triangle.