Let's use the variable x to define the fish speed, and the variable y to define the current speed.
If the fish swims 12 miles upstream in 4 hours, the relative speed in this case is 12/4 = 3, and it is the fish speed minus the current speed, so we have:
![x-y=3](https://img.qammunity.org/2023/formulas/mathematics/high-school/tblq0tgag4aqy96bmbm5exto8n9gi6pipe.png)
Then, the return trip takes only 3 hours, so the relative speed is 12/3 = 4, and it's the sum of the fish and current speeds:
![x+y=4](https://img.qammunity.org/2023/formulas/mathematics/college/slcv11q9pzaytp1pqajhn2nk80gfcas4mj.png)
Adding both equations, we have:
![\begin{gathered} x-y+x+y=3+4 \\ 2x=7 \\ x=3.5 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/y50v0x1q4fsvv1pa6cdu6cb7hz19ukqj6y.png)
Now, calculating y, we have:
![\begin{gathered} x+y=4 \\ 3.5+y=4 \\ y=4-3.5 \\ y=0.5 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/9skpin2bdcc3jh214oi2slbcuw7l9fhavy.png)
So the rate of the current is 0.5 mph, therefore the correct option is A.