Buy it from the App Store. When you buy a used machine, the copy of iLife that came with it was registered to the account of the original owner, so you'll have to repurchase it. It's not expensive though, $15 apiece for iPhoto, iMovie, and GarageBand.