It worked, I didnt use surge protector because the sub is on a 2 prong outlet (2 prong plug) and receiver is on a 3 prong, not sure if its related but I read that a cause of humming could be if one is grounded and the other is not that they could "fight" over the ground.
I believe (and my experience supports this) that this issue only occurs if you connect one or more items together that are themselves connected to different ground potentials. For example, if you plug the sub into outlet "A" and the receiver into outlet "B," and the outlets have slightly different ground potentials, and then you connect the receiver and sub together with an RCA cable (or a combo of various cables
). A surge protector will help you will this, as will any power strip that maintains a common ground between all of its outlets, because everything plugged into it will share a common ground. In your case, though, it's probably not easy to plug both the receiver and sub into the same power strip because they're so far apart (unless you're willing to get an extension cable). All of that said, if you don't hear a hum - you don't need to think twice about any of this.
I'm no sparky, but my understanding is that the neutral and ground wires in an electrical outlet all go to ground, and that the third round ground plug is to ground the metal cases of appliances so that, if a hot wire comes loose and touches the case, it will trip the breaker as opposed to waiting for you to touch it and get shocked (potentially fatally). So, the ground plug is a safety feature.