Marc sold 563 tickets for the school play . Student tickets cost 4 dollars and adult tickets cost 6 dollars . Marc 's sales totaled 2840 dollars . How many adult tickets and student tickets did Marc sell?