If A is primary and B is secondary, and B is the one that has a bunch of PS+ games, when their subscription expires if you renew PS+ on account A, all of B's games will no longer work because B does not have an active subscription anymore.

B will always need an active PS+ subscription if you wish to continue playing all of the "purchased-for-free" PS+ games that that account "owns".