the formula for solving perimeters is 2(WL). so L=3w-2, because the question said the length is 2 units shorter than 3 times the width, and the width is w. so the final equation is <span>2(3w-2+w), and then you just have to simplify that </span>
To find the intervals you will need to find the lowest and highest numbers, in this case, it would be 1 and 35. A general rule would be 5-7 intervals, I will use 5.
Here are the intervals with the number of people that were in each: