Let the maximum marks of the exam are x
Given: Annie scored 20 marks less than the maximum marks
⇒ Marks of Annie =x−20
Given: Romy scored half of the maximum marks
⇒ Marks of Romy=x2
Given that Both Romy and Annie scored equal marks
⇒x−20=x2
Place unknown terms in left hand side and constants in the right hand side
⇒x−x2=20
⇒x2=20
Multiply by 2 on sides of equation
⇒2×x2=2×20
⇒x=40
∴ Maximum marks of the exam were 40