Investors were reacting to news of a meeting between Elon Musk, Tesla’s chief executive officer and co-founder, and Apple’s Adrian Perica, a former Goldman Sachs investment banker who heads Apple’s mergers-and-acquisitions team, analysts said.