You can't tell. It depends on other things besides just their distance.
IF the stars are really really "identical", then the magnitude of Star-B is the number that is 6 more than the magnitude of Star-A.
4.5m questions
5.9m answers