We know the triangles are congruent, so if you were to flip one of the triangles onto the other, the will perfectly match up, allowing us to solve for x and y.
Since the length of side CK is equal to the length of WM, then you can make the equation 6y-4 = 18. then you just add 4 to each side and divide both sides by six to get 3. Same thing for the other equation. Angle (i think its an angle due to its placement) C is equal to angle M, so you can make the equation 3x + 7 = 19. Subtract seven from both sides then divide by 3 to get 4. Tell me if you have any questions :)