In a Mathematics test, there are 10 multiple choice questions 2 marks will be awarded for each correct answer, while 1 mark will be deducted for each wrong answer. If Peter answers all the questions in the test and his test result is 8 marks, how many correct answers has he got in the test?