A bag contains 5 black, 4 white and x red marbles. If the probability of…