Suppose you have top level Dependency A.
Dependency A is licensed under MIT.
Dependency A packages Dependency B as part of its distribution.
Dependency B is licensed under GPL.
In order to use Dependency A, do you need to agree to the terms of both MIT as well as GPL, or just MIT.