easy python solution with detail math explanation
\nbase on  the question we can get this\nX = jump burger , y = small burger\n4x + 2y = tomatoSlices \nx + y = cheeseSlices\n\nwe can get 2X =  tomatoSlices -2*c
```\nbase on  the question we can get this\nX = jump burger , y = small burger\n4x + 2y = tomatoSlices \nx + y = cheeseSlices\n\nwe can get 2X =  tomatoSlices -2*cheeseSlices   -> X =  (tomatoSlices -2*cheeseSlices)//2 \nand none of x ,y  can be negative number\n\nclass Solution:\n    def numOfBurgers(self, tomatoSlices: int, cheeseSlices: int) -> List[int]:\n        t, to, ch = tomatoSlices -2*cheeseSlices, 0 , 0\n        if t%2 != 0: return []\n        else: to, ch = t//2, cheeseSlices-t//2\n        if to < 0 or ch < 0: return []\n        return [to, ch]\n```
[]