Wallet B needs coin selection and being able to spend unconfirmed transactions. Use Wallet B to spend the transaction coming from Wallet A.