A boat sails 40 miles south and then 30 miles east. How far is the boat from its starting point?