Looking at a position with hingeconstraints as servos (1 for up and down and 1 for left and right)

I have a moving head, which I want to make it look at a position, it has 2 servo’s

How would I do this? I’m making something like defqon 1 and Qlimax