A college student earned $5700 during summer vacation working as a waiter in a restaurant on the boardwalk at the beach. The student invested part of the money at 6% and the rest at 8%. If the student received a total of $382 in interest at the end of the year, how much was invested at 8%