Amazon on Friday it plans to acquire Whole Foods Market for $42 a share, in a deal valued at $13.7 billion.