In a lottery, people choose numbers and then win prizes if the numbers they select…