Given the task definition and input, reply with output. The task is to generate the correct answer for a given math problem.

Problem: two tests had the same maximum mark . the pass percentages in the first and the second test were 40 % and 45 % respectively . a candidate scored 216 marks in the second test and failed by 36 marks in that test . find the pass mark in the first test ?
22