A bag contains 5 blue balls and 5 black balls.
So, the number of ways in which a blue ball can be taken out
= 5C1=5!(5−1)!×1!
=5!4!×1=5×4!4!=5
And the number of ways in which a black ball can be taken out
= 5C1=5!(5−1)!×1!
=5!4!×1=5×4!4!=5
∴ Number of ways of taking out a blue ball and black ball = 5 × 5 = 25