>>96366985
It's not a stupid question.
Dudes A can get in the 1" engagement range behind the wall. Even though B dudes are base to base contact with A dudes, because A dudes are not in base to base contact with the enemy, they can't attack. So only A dudes can make attacks.
Unless I'm mistaken myself, shit's complicated.