How to set position

Hello!
I have tried many different ways, but I can't find the right way to set the position.
function ($menu,x,y){
???????????
}
I have tried many different ways, but I can't find the right way to set the position.
function ($menu,x,y){
???????????
}