During the school week, joshua spent 3$ each day in lunch.On tuesday,he bought a 5$ ticket to the school and on friday he loaned 2$ to his friend.When he checked his wallet at the end of the day friday,he had 3$ left .how much money did he start the week with ?