Write a command that saves the elements of y into x after it…