Thank you very much for your reply.
I did it and I also have changed some settings, now I have in maschine sync to external midi clock and in a4 settings clock recive but i left cable connection like it was before, midi in on a4 and midi out on maschine controler. In maschine preferences I set up sync offset slave on -79 and now is working good but sometimes after few min its going out of sync. Especially when I press stop and play it again (I need to set up sync offset slave in maschine preferences every time when I press stop and play again).
Before I made that changes I was trying with maschine preferences sync offset slave and also with clock offset in outputs midi settings and I couldn`t sync it.
Am I doing something wrong?
I am a totally beginner so very sorry for stupid questions 
Hope you understand because my english is not very well.
Thanks for your help