In a competitive examination in State A, 6% of candidates were selected from the total appeared candidates. State B had an equal number of candidates appear and 7% were selected with 80 more candidates selected than A. What was the number of candidates who appeared from each State?