Compare between these students to show the reason of better marks

i need you to do a compare report between from 30 to 50 students by choosing a category from the XL that i will attach e.x. the students who are close to the school has better marks that the students who lives far away from the school and you must show your idea in tables and graphs and include the reason for better marks