Easy Python Solution
\nclass Solution:\n    def numOfBurgers(self, tomatoSlices: int, cheeseSlices: int) -> List[int]:\n        total_jumbo = 0\n        total_small = 0\n        if 
```\nclass Solution:\n    def numOfBurgers(self, tomatoSlices: int, cheeseSlices: int) -> List[int]:\n        total_jumbo = 0\n        total_small = 0\n        if tomatoSlices%2 != 0 or tomatoSlices < 2*cheeseSlices or tomatoSlices > 4*cheeseSlices :\n\t\t\t#checking for invalid values\n            return []\n        else:\n            if tomatoSlices > 0 and cheeseSlices > 0:\n                k = tomatoSlices % (2*cheeseSlices) #number of tomatoslices remained after making all small\n                total_small += cheeseSlices \n                if k > 0:\n\t\t\t\t    #sending slices from small to jumbo\n                    total_jumbo  = k // 2\n                    total_small -= total_jumbo  \n        return [total_jumbo,total_small]\n    \n```
[]