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$?

Let's think step by step and output the final answer within \boxed{}.
user