There are p marbles in a bag.

18 of the marbles are red.

Mary takes at random 40 marbles from the bag.

6 of these 40 marbles are red.

Work out an estimate for the value of p.