Peter answered 15 questions on a quiz and obtained 29 points. If 3 points were given for each correct answer and one point deducted for each wrong answer, how many questions did Peter answer correctly?