In a frequency or a relative frequency distribution the class width is calculated as the difference between the lower or upper class limits of consecutive classes. A point to note is that all the categories or classes usually have the same class width.
We use the first two classes to calculate the class width by using their respective upper limits;