Tickets for the hamiltons high school's summer play are $3 for students and $5 for non-students. on opening night 937 tickets were sold and $3943 is collected. How many tickets were sold to students? non-students?

number of students ---- x

number of non-students -- 937-x

solve for x

3x + 5(937-x) = 3943