Buying them wouldn't even be a blip with the amount of cash Apple has on hand.
Last.fm isn't just some small startup that Apple can just snatch up though, like most of their other purchases - they're owned by CBS.
CBS purchased Last.FM in 2007 for $280m.