A gets 30% marks in an examination but fails by 50 marks, whereas B gets 50 marks more than necessary for passing when he scores 40%. What is the passing percentage and what are the maximum marks?
Show Hint
Translate word problem to equations. Use one variable and set both passing mark expressions equal to solve.