We could share files and folders with Google accounts and Google Groups, there is no way to "share a file with a folder" but you could move files owned by you. If the files are owned by other people from the same Organization they should move them.
If the files are owned by people from a third-party organization, AFAIK it's not possible to transfer the ownership of a file, so the file owner can't add the file to a team drive owned by another organization.
From Share files with Team Drives
Move, share, & organize files
You can still share, search, and organize files in Team Drives like
your own files in your Drive.
Move files from "My Drive"
You can move files into Team Drives the same way you would in your own
Drive. Learn more about moving files.
- You may not be able move files owned by other people. If you want to move a file owned by someone else, ask the owner to move it or contact
your administrator for assistance.
- When you share files with someone outside of your Team Drive, they can find the files under "Shared with me". Learn more about what you can see in "Shared with me."
- If a file is saved in a Team Drive, you can't organize it in more than one folder.