A boat travels 8 miles north from point A to point B. Then it moves in the direction S 40º W and reaches point C. Finally, it turns S 40º E and returns to point A. The total distance covered by the boat is miles.