In a competitive examination in state Madhya Pradesh, 4% candidates got selected from the total appeared candidates. State Uttar Pradesh had an equal number of candidates appeared and 9% candidates got selected with 72 more candidates got selected than Madhya Pradesh. what was the number of candidates appeared from each state?