If you apply for a patent at the same time: According to paragraph 2 of Article 13 of the Detailed Rules for the Implementation of the Patent Law, if two applicants apply for the same patent at the same time, the applicants shall be determined by both parties through consultation.
Applying for a trademark at the same time: According to Article 29 of the Trademark Law, if two or more applicants for trademark registration apply for registration with the same or similar trademarks on the same or similar goods, the trademark applied earlier shall be preliminarily examined and announced; Where an application is filed on the same day, the prior trademark shall be preliminarily examined and announced, and the application of others shall be rejected without announcement.