A number is selected at random between 20 and 30, both numbers inclusive. Find the…