Orb version resolution

How are orb versions resolved when multiple versions of an orb are referenced directly and transitively.

For example, imagine the following orbs:

  • A
  • B
  • C

A v1 depends on B v1 and C v1.
B v1 depends on C v2.

If I use A v1, which version of C will be used? Does A’s direct dependency on C v1, override B’s transitive dependency on C v2 (only one version at a time)? Or does B’s references to C resolve against v2 and A’s references to C resolve against v1 (multiple versions can coexist)?