In Which order are the policies applied?

I have 2 user packages , one is associates to organization unit and into this there is a user with another user-package.

Which is the package applied?
that one a level of organization or a level of user?

Please can someone explain how can it works?