A boat is sailing 42 km/hr upstream on a river that is moving at 16 km/hr downstream. What is the velocity of the sailboat.....can you show me the formula too...not understanding this

V = 42 - 16 = 26 km/h.