In the given figure, AC extends to point D and ∠BCD=100∘. If the measure of ∠BCA is equal to the measure of ∠BAC, what is the value of x?
10
20
30
40