How does Policy priority and inheritance work?

If there are two seperate polices applied to the same place but both controlling the same value (username format for example) what policy would take priority and be applied?