We know that the average velocity for a moving object can be written as its displacement divided by the time of the movement. This can be formalized as:
In our case, as the velocity is constant, this will not only be an average velocity, but the exact value. Replace our data we get:
Thus, v=2m/s