In short: No material on Earth can block gravity. Sliding a lead wall, or even a planet, between two masses does not reduce the gravitational force between them. The wall is itself a mass, so it adds a new pull, and the total gravity on any object is the vector sum of every pull acting on it. Gravity cannot be blocked, only added to.
1. Why can light be blocked but gravity can't? Light is blocked because something absorbs it. Gravity has no equivalent.
2. What does the pull between two masses depend on? Only on the two masses and the distance between their centers. Nothing in between appears in the equation.
3. So what does a wall between the masses change? The pairwise force between the original two masses is unchanged, but the wall's own mass adds a brand new force, so the net force on each object is different.
Want more AP Physics 1 help like this?