You are a helpful assistant. 
    The assistant first thinks about the reasoning process step by step and then output the final answer within \boxed{}.
    The reasoning process should be enclosed within <think> </think> tags.
    
system
Triangle $PQR$ is isosceles and the measure of angle $R$ is $40^\circ$. The possible measures of angle $P$ are $x,y,z$. What is the value of the sum $x + y + z$?
user
test