If triangles ABC and PQR are both isosceles with AB = AC and PQ = PR, respectively. If also AB = PQ and BC = QR and angle B = 50°, then what is the measure of angle R?