Solve for the variables

Answer:
x = 17, y = 17
Step-by-step explanation:
Since the 2 triangles are congruent,
angle BAC = angle EDF
87 = 5x + 2
5x = 85
x = 17
angle BCA = angle EFD
3y = 180 - 42 - 85 - 2
3y = 51
y = 17