Help turning Arrow function into a regular function

Hi I want to convert this arrow function to a standard function. But the code is not generating the same result when I plug in numbers. where am I off

Original Arrow function (is this anynomous)?

const getMousePosition = (x, y) => ({
  x: x,
  y: y
});

My code of me trying to turn this into regular function

function getMousePosition(x,y) {
const a= {  
  x: x,
  y: y }
};

getMousePosition(4,5);
function getMousePosition(x,y) {
const a= {  
  x: x,
  y: y }
  return (x,y);
};

getMousePosition(4,5);


but then I only get 5 instead of 4,5 why is it not returning both.

Return the object you created, not the arguments passed into the function.