in a competitive examination in state a , 6 % candidates got selected from the total appeared candidates . state b had an equal number of candidates appeared and 7 % candidates got selected with 80 more candidates got selected than a . what was the number of candidates appeared from each state ?