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