Let x = number of days
y = amount spent each day
Then xy = 1200 and (x+2)(y-50) = 1200
So, xy + 2y - 50x - 100 = 1200
1200 + 2y - 50x - 100 = 1200
2y - 50x = 100
y - 25x = 50
y = 25x + 50
Since xy = 1200, we have x(25x + 50) = 1200
25x2 + 50x - 1200 = 0
x2 + 2x - 48 = 0
(x+8)(x-6) = 0
x = -8 or x = 6. Since x can't be negative, x = 6days