Triangles ABC and PQR are isoscles with AB = BC, RP = PQ, angle B = angle P = 50 degrees. Find angle CXY.