The data in the figure below represents the number of stars…