The speed of the boat against the stream is calculated as:
u - v = 5 (km/hr)
Substitute the value of \( u \):
7 - v = 5
Solving for \( v \):
v = 7 - 5 v = 2 km/hr
Thus, the speed of the stream is 2 km/hr, which matches option (b).