Python solution: basic algebra...
\nclass Solution:\n    # Basic algebra\n    # x, y = tomato, cheese\n    # j, s = number of jumbo and small burgers made\n    # 4*j + 2*s = x\n    # j + s = y\n
```\nclass Solution:\n    # Basic algebra\n    # x, y = tomato, cheese\n    # j, s = number of jumbo and small burgers made\n    # 4*j + 2*s = x\n    # j + s = y\n    # 2*j + 2*s = 2y\n    # 2*j = x - 2y\n    # s = y - j = y - (x-2*y)/2 = 2*y - x/2\n    def numOfBurgers(self, tomatoSlices: int, cheeseSlices: int) -> List[int]:\n        x, y = tomatoSlices, cheeseSlices\n        if x < 2*y or y < x/4 or (x-2*y)%2 != 0 or x%2 != 0:\n            return []\n        return [(x-2*y)//2, 2*y-x // 2]\n```
[]