A:
It is permissible to
buy and sell in the teaching room, because it is not a Masjid (mosque), so it does not take the same ruling as a Masjid.
May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.