Apple (AAPL -1.14%) finished last quarter with $18 billion in domestic cash and equivalents, and another $215 billion stashed overseas. The massive cash hoard has recently raised major questions about repatriation and taxation, but the biggest question of all is how Apple plans to spend all that cash.

Image source: Getty Images.

With sales of iPhones, iPads, and Macs fading, Apple must expand its subscription services, strengthen its software ecosystem, and expand into new markets. In that light, let's discuss how Apple could spend its cash hoard over the next few years.

Media growth

With the purchase of Beats and the launch of Apple Music, Apple declared that it wanted to turn subscription-based media services into a key pillar of growth. Apple was reportedly developing a "skinny bundle" of 25 streaming TV channels last year, but the efforts were allegedly bogged down by Comcast withholding its channels for its own X1 set-top box.

That delay fueled rumors that Apple was making big media acquisitions to strengthen its own portfolio. Apple's senior VP of software and services, Eddy Cue, reportedly proposed buying Time Warner (TWX) earlier this year, while rumors swirled about a Netflix (NFLX -8.45%) buyout.

Image source: Apple.

However, neither of those deals would make much sense. Buying Time Warner, which has a massive enterprise value of $83 billion, would reduce Apple's margins and give it all of Time Warner's cord-cutting woes. More importantly, Apple already integrated Time Warner's most promising platform, HBO Now, into iTunes and Siri.

Netflix is struggling with user growth, and content licensing and original programming costs are weighing down its bottom line. The company's enterprise value of $43 billion prices the company at nearly 6 times sales -- which is much pricier than Time Warner's EV-to-sales ratio of 3. After factoring in acquisition premiums, Apple could easily pay over $100 billion for each of these companies.

Instead, Apple should buy smaller players such as Lions Gate (LGF-A 1.39%), the movie and TV studio that recently agreed to acquire pay TV network Starz. Its enterprise value of $4.4 billion (less than 2 times sales) is much more affordable, and the acquisition would add a lot more video content to Apple's portfolio. Streaming leader Pandora (P), with an enterprise value of $3.3 billion, would also be a logical fit for Apple Music.

Betting on Project Titan

Apple has never acknowledged Project Titan's existence, but it's widely believed that the secretive team is developing a self-driving electric car. This has sparked ongoing rumors that Apple might buy electric-auto maker Tesla Motors (TSLA -0.89%).

Image source: Tesla Motors.

While it's easy to see the parallels between Apple's and Tesla's sleek and pricey products, Tesla's enterprise value of $30 billion -- which values the company at nearly 7 times sales -- simply looks too high. Moreover, Tesla's negative margins and its decision to bail out SolarCity indicate that the purchase would crush Apple's margins.

Instead of buying entire companies, Apple could follow up its $1 billion investment in Chinese ride-hailing app Didi Chuxing with additional investments in smaller companies in the ride-sharing and autonomous-vehicle markets. There are plenty of companies to choose from -- over 4,500 automotive start-ups are listed on AngelList, with an average valuation of $4.5 million.

Expanding its cloud

Apple currently depends on Alphabet's Google, Amazon.com, and Microsoft for its cloud computing needs. That dependence will become awkward as Apple competes more directly against these peers with its own software ecosystem, so it's been building its own cloud centers.

However, Amir Efrati and Steve Nellis at The Information claimed that it could take "years" for Apple to declare cloud independence. Therefore, it makes sense for Apple to buy smaller cloud and enterprise players to close the gap.

Last December, FBR & Co. analyst Daniel Ives suggested that Apple could buy Box (BOX 0.76%) and Adobe (ADBE -1.31%). Buying Box, which has an enterprise value of $1.7 billion, would strengthen its iCloud platform. Acquiring Adobe, which has a much higher enterprise value of $48 billion, would expand its subscription services segment with cloud-based creative and enterprise tools. But neither company is cheap -- Box and Adobe respectively trade at 5 and 9 times their enterprise values.

Virtual and augmented reality

Apple recently acquired AR/VR firms Metaio, Faceshift, Emotient, and Flyby Media, indicating that it's developing an AR of VR headset. A Financial Times report claimed that Apple's AR/VR team has already developed prototype headsets, but it's unclear when they might arrive.

There are currently 665 AR companies with an average valuation of $4.2 million on AngelList, as well as nearly 900 VR companies with an average valuation of $4.6 million. Apple could scoop up more of these start-ups to expand its footprint across both fledgling markets.

The key takeaway

Apple will keep returning cash to shareholders via buybacks and dividends over the next few years, but investors should keep a closer eye on its investments and acquisitions. These moves will provide a clearer picture of how Apple plans to reduce its long-term dependence on the almighty iPhone.