x wrong answers and 7x correct answers; In total, x + 7x = 8x answers. 8x = 160 implies x = 20. So, there were 20 wrong answers and 7*20 = 140 correct answers.