Broadwing1,
You have a few issues to contend with I'm afraid to say...
1) In regards to Logic Pro.. You can upgrade to Logic Pro 9 but only via the DVD Upgrade version which you will have to find used, on eBay or somewhere similar...Otherwise it has to be LPX via the Mac App Store... as LP9 is not longer sold by Apple.
2) As far as OS X is concerned.. Your choices are Mountain Lion on DVD frmk Apple.. or Yosemite via the Mac App Store as I wouldn't recommend Lion at all.. and Mavericks is no longer available...
Personally my main working setup is still a 2011iMac 3.4Ghz 32GB RAM AMD 2GB running Snow Leopard 10.6.8 and Logic Pro 9.1.5 though 9.1.8 will work too.. I just don't find it performs quite as well as the earlier update... I keep that combo just for music.. on the internal system drive.. and I boot to an external HD containing Yosemite 10.10.3 for everything else.. Its not as convenient but well worth it given music is my main priority..
I have several testbed setups here running different combos of OS and Logic and currently I have just bought a 2015 Mac Pro which has to run Yosemite and therefore I am running LPX 10.1.1 on that too as the performance of LP9 under Yosemite is somewhat unstable.. but as i said earleir.. my main working rig is still SL and LP9
So, what would I do in your circumstances?
I'd probably grab a copy of the DVD version of Logic Studio 2.0 (LP9) upgrade it to 9.1.5 or 9.1.8 and stick with that.. using a second external drive with Yosemite if you need access to the latest OS X features.. in a non audio work sense
Alternatively, if you really need to upgrade to Yosemite because of other audio software/plugins needing it as a min requirement then I'd upgrade the main drive to Yosemite and LPX... but keep an external HD with SL and LP8 or 9.. which ever you wish.. to fall back on and for much more reliable opening of older projects that used 32bit plugins as LPX doesn't support them any longer.
However, you will probably notice quite a drop in overall overall performance of both Logic Pro X and OS X for that matter... due to the extra demands Yosemite makes on the hardware.. and your MBP is one of those macs that may not have the real horsepower to run LPX and Yosemite as fast as you are used to with SL and LP8. It will work.. but don't expect the track count for example, to be anywhere as high as was possible with the earlier OS X& Logic combination.
As a further tip.. If you decide to upgrade to LPX.... make sure you take the time to save out your LP8 projects as individual track audio stems if you wish to continue to edit them on at least a basic level with LPX... Again, this is because of the issues with the non support of 32bit plugins in LPX and the instability of LPX's import routines when it comes to bringing LP8 projects into LPX
Note: LP9 never had any issues using LP8 projects because the format was the same unlike LPX, who's project format is very different and once you export an earlier project to LPX format for further editing and work for example.... you cannot load that edited LPX project back into LP8 or LP9 for that matter..
Hope this helps a little...
Bear in mind this is just a personal opinion and others may differ 🙂
Finally as the old saying goes.. "if it ain't broke, don't fix it" can often apply in such situations...