The school production of 'Our Town' was a big success. For opening night, 391 tickets were sold. Students paid $4.00 each, while non-students paid $6.00 each. If a total of $1786 was collected, how many students and how many non-students attended?