Math problem

I cant solve this:

37x + 8 = z
43y + 11 = z
z < 1000
x,y - natural numbers

I know answer is:
x = 21
y = 18
But, i need to prove it.