Let s be the number of hours that Nick swam and r the number of hours that he ran, then we can set the following system of equations:
Solving the second equation for s, and substituting in the first equation we get:
Substituting r=5.5 in the second equation, and solving for s we get:
Therefore he swam for 3 hours and ran 5.5 hours.