Star A will have a higher apparent magnitude because it is at a lesser distance.
This is because apparent magnitude decreases (the brightness appears higher) for objects that are closer. Since both stars have equal luminosities, Star A, being closer, will appear brighter than Star B.