Let the marks in Math be x and in English (30-x).
New marks in Math = 2 + x
New marks in English = 27 - x
(2+x)(27-x) = 210
54 - 2x + 27x - x^2 = 210
x^2 - 25x + 156 = 0
x^2 - 12x - 13x + 156 = 0
x(x - 12) - 13(x - 12) = 0
(x - 12)(x - 13) = 0
x = 12, 13
If her marks in Math is 12, then in English she got 18.
If math mark is 13, then she got 17 in English.