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% of candidates got selected with 80 more candidates got selected than A. What was the number of candidates who appeared from each State?