It depends on whether the subject of the trademark is an individual or a company; if it is a company, the company transfer includes the trademark;
If the subject is an individual, the trademark can be transferred separately to If it belongs to someone else, you can keep it for yourself and continue to use it;
For trademark transfer, you can entrust an intellectual property agency to transfer it on your behalf. They have more resources, can transfer it quickly, and have complete procedures