A student has to score minimum of 40% to pass an exam .if student gets 178 marks and fails the exam by 22 marks, what is the total marks?

.4*Max=178+22

Max=200/.4=500