Provide your best answer for the following math problem. Give ONLY the answer, no other words or explanation.
For example:

Answer: <most likely answer, as short as possible; not a complete sentence, just the answer!>.

The problem is: in a competitive examination in a state a , 10 % candidates got selected from the total appeared candidates . state b had an equal number of candidates appeared and 12 % candidates got selected with 100 more candidates got selected than a . what was the number of candidates appeared from each state ?
5000
Let x be the number of candidates appeared from state A. Then, 10% of x = number of candidates selected from state A.