Ashish got 30% of the maximum marks in an examination and failed by 10 marks. Sahil took the same examination got 40% of the total marks and got 30 marks more than the passing marks. What were the passing marks in the examination?