You should try using Memtest86 as it may be more up to date than the memory tests on the UB CD.
Are you actually experiencing system issues or are you just running the memory test for other reasons? Memory tests can report false positives. Have you tried running the Apple Diagnostics as well?
A lot of times the memory slot nearest the bottom case goes bad due to bad solder joints. The slot nearest the keyboard seems less likely to fail (although I just encountered a laptop last week with this slot bad -- first one that I can remember). It is very unusual to see both memory slots fail at the same time or even both memory modules.
If a memory slot is bad, then the Logic Board needs to be replaced.
Keep in mind a power issue with the laptop could make the memory fail.
Is this original Apple memory? Or is it memory that is guaranteed compatible with a Mac? Even memory from Crucial which is not guaranteed to be compatible with a Mac can have compatibility issues. Macs are extremely picky about the memory they use.