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.
8.6m questions
11.3m answers