The problem is as follows:
An air force pilot navigates across the Amazon river aboard an inflatable rescue lifeboat. He spends $\textrm{4 hours}$ by going in the same direction of the current to cover $\textrm{72 kilometers}$ between his landing site to the nearest town. Later on, he returns to his landing site spending $\textrm{6 hours}$ by going against the river stream. What is the speed of the river if we know the speed of the lifeboat and the river are constant?
In my attempt to solve this problem I sketched the situation in Figure A.
I defined the speed of the lifeboat as:
$$\textrm{lifeboat=}v_{b}$$
and the speed of the river stream as:
$$\textrm{river stream=}v_{r}$$
For constant speed the equation is the following:
$$x=x_{0}+vt$$
Since I'm assuming it departs from the center of the axis $\textrm{(0,0)}$ the equation becomes into:
$$x=vt$$
Initially I thought that the speed of the lifeboat was this:
$$v_{b}=\frac{72\,\textrm{km}}{4\,\textrm{h}}=18\,\frac{\textrm{km}}{\textrm{h}}$$
However after some deeper thought I said that this cannot be as the speed of the boat is influenced by the stream as it mentions going downstream and not in water at rest so I changed the equation to take into account the speed of the river.
Since both are in the same direction I thought to summing them up and by doing this the new equation became into:
$$\left ( v_{b}+v_{r} \right )\times 4 = 72$$
and when the lifeboat goes upstream would be the difference in other words the speed of the stream subtracted from the lifeboat, therefore becoming into:
$$\left ( v_{b}-v_{r} \right )\times 6 = 72$$
By solving the system:
$$\left ( v_{b}+v_{r} \right )\times 4 = 72$$ $$\left ( v_{b}-v_{r} \right )\times 6 = 72$$
$$v_{b}+v_{r} = 18$$ $$v_{b}-v_{r} = 12$$
$$2v_{b} = 30$$
$$v_{b}=15$$
$$v_{r}=3$$
Therefore the speed of the river stream is $3\,\frac{km}{h}$. However I'm not sure if what I did was correct. Also, is it okay to assume velocities going in the same direction should be summed and when they're in opposite should be subtracted? The answer I got is somewhat reasonable as I do not expect that the river has a really big speed. But what if the stream speed is larger than the speed of the boat? can this situation happen? would this affect the way how I did approached this problem?. Can someone help me to clear these ideas?.

Your calculation is indeed correct.
Velocity is a vector, i.e. it comes with a magnitude and direction. When they are in the same direction, we add them, when they are in the opposite direction, we subtract them.
To be able to travel in the opposite direction, your boat needs a faster speed than the river. Otherwise, imagine someone who push you backward $2$ steps whenever you try to move forward a step, if the destination is in a straight line and not a loop, you can't reach the destination. Hence you won't have the second equation.