How would I compare the orbital period of two stars knowing their distance apart in AU and their solar masses?

The orbital period will depend upon the total mass of the two stars. Kepler's third law can be written:

Period (years)^2 /(semi-major axis (a.u.))^3
= combined mass (in solar masses)