So is it a 2007 or 2009? If it is a 2009, the original OS was Snow Leopard. If it is from 2007, it was either 10.4.x or 10.5.x.
Either is capable of running Yosemite; however, I would recommend that you install more RAM as 4 GB is generally considered to be the absolute minimum to run the newer OS versions. 8 GB would be good, more is better (depending on how much RAM yours can handle).
Now, if you had Snow Leopard, did you upgrade to Mavericks? And then you tried to install Snow leopard over that? Did you erase your hard drive at some point? And was reinstalling Snow Leopard successful?
If you want to upgrade to Yosemite, there is no need to uninstall Snow leopard - you can simply install the new OS over Snow Leopard as long as you have the latest of that version; 10.6.8.
I do not understand your reference to "I need to fix my Values" - what does that mean?
And, if you need to repair your hard disk, you will need to boot from a different source than your internal OS - if you have Snow leopard installed, there is no recovery to boot into, so you would have to boot from your Snow leopard install disk in order to repair your internal disk.