The Herms family takes their sailboat to an island in a nearby lake for a picnic. The island is 12 miles from shore. The boat sails to the island at 4 miles per hour and then back to shore at 6 miles per hour because of a stronger wind. How much longer did it take to get to the island?