How to go from one sequence to another

I need from one sequence to another . like this, Which command can I use to do this?