Ankit's age: x years Nikita's age: y years Equation: 2y - x = 4 Substituting the expression for Nikita's age: 2(240/x) - x = 4 Multiplying through the parentheses: 480 - x^2 = 4x Combining like terms: x^2 + 4x - 480 = 0 Factoring: (x+24)(x-20) = 0 Solving: x = 20 or x = -24 Since Ankit's age cannot be negative, we know that Ankit's age is 20 years.