The lottery is a form of gambling where people have a chance to win a…