Python Math Solution
X: Big burger Y: small burger\n\n4X + 2Y = T \nX+Y = C\n\n=> X = T/2-C, Y = 2C-T/2 , both X and Y need > 0 , so \n\nif tomatoSlices < 2*cheeseSlices or tomatoSl
X: Big burger Y: small burger\n\n4X + 2Y = T \nX+Y = C\n\n=> X = T/2-C, Y = 2C-T/2 , both X and Y need > 0 , so \n```\nif tomatoSlices < 2*cheeseSlices or tomatoSlices > 4*cheeseSlices:\n            return []\n```\n\nSource \n\n```\nclass Solution(object):\n    def numOfBurgers(self, tomatoSlices, cheeseSlices):\n        """\n        :type tomatoSlices: int\n        :type cheeseSlices: int\n        :rtype: List[int]\n        """\n        if tomatoSlices%2 == 1:\n            return []\n        \n        if tomatoSlices < 2*cheeseSlices or tomatoSlices > 4*cheeseSlices:\n            return []\n        \n        return [tomatoSlices/2-cheeseSlices, 2*cheeseSlices-tomatoSlices/2]\n        \n```
[]