Nirmal swam 8 miles in a race and walked 2 miles. How far did Nirmal swim rather than walk?