It follows the parent-child relationship down the LabTech group tree.
Since agents can land in any number of groups (branches of the tree) we use a priority just like LabTech templates to choose which policy should win.
Please see examples...