teachers divided students into groups of 3. each group of 3 wrote a report that had 9 pictures in it. the students used 585 pictures altogether. how many students were there in all?