Python easy solution with explanation [2 known 2 variables]
treat it like two equations where you have 2 known 2 variable:\n    \nLet number of small burgers be y and number of jumbo burgers be x.\ntotal tomatoslices use
treat it like two equations where you have 2 known 2 variable:\n    \nLet number of small burgers be y and number of jumbo burgers be x.\ntotal tomatoslices used will be 4x +2y \ntotal cheeseSlices used will be x+y\n\n4x +2y = tomatoSlices\nx+y = cheeseSlices\n\nSolving for x and y , we get:\n\ny= ((4* cheeseSlices) - tomatoSlices)/2\nx= cheeseSlices - y\n```\n\nclass Solution(object):\n    def numOfBurgers(self, t, c):\n        small = ((4*c)-t)/2\n        jumbo = c-small\n        if small.is_integer() and small >= 0 and jumbo >= 0:\n            return [int(jumbo), int(small)]\n        else:\n            return []\n\n```
[]