Azure AD (Azure P1) is not an Active Directory environment and does not native support forest/domain trusts. The only way to have a two-way trust would be to introduce Active Directory to company A.
However, you can have a one-way trust by introducing Azure Active Directory Domain Services to Company A.
https://learn.microsoft.com/en-us/azure/active-directory-domain-services/overview