Imaging that I am a student from College A and cross-registered in Institute B. I am a college kid so I receive very little care from the professors from my own school, and I do not have an official supervisor. Most of the works are done in the library and computer lab of B, and I discussed my ideas very often with professors in B. However, I do not have department affiliation with B. My formal status in B is something like "exch. stud." I guess it means exchange student.
What should I list as my academic affiliations in scientific publishing?