The arrangement of data according to magnitude or size is called a frequency distribution. It is the method of putting…