A tank contains 1767 kg of compound X. Each year, a fixed amount of 12 kg of the
compound leaks out of the tank. In addition, compound X also degrades to compound Y, at
a constant rate of 0.012 mass fraction per year (do not confuse mass fraction with percent).
After 7 years, how many kilograms of compound X remain in the tank?