When you replace symbols with numbers, you must put negative signs where they belong. If v01 = +5 m/s and is moving to the right, then v03 = -3 m/s. The negative sign says that the second mass is moving in an opposite direction to that of the first mass. The same applies to the first mass after the collision. It is moving to the left so its velocity must be -1 m/s.