A box contains 40 identical balls of which 10ย are red and 12 are blue. if…