In triangle ABC, angle A is twice angle B, and angle C is 40 degrees. What is the measure of angle A?