Python - With code comments - Simple Math
\n# Simple Mathematics problem: \n#\n# Let n = total number of tomato slices\n# Let m = total number of cheese slices\n# Let x = total jumbo burgers that can be
```\n# Simple Mathematics problem: \n#\n# Let n = total number of tomato slices\n# Let m = total number of cheese slices\n# Let x = total jumbo burgers that can be made\n# Let y = total small burgers that can be made\n# \n# x + y = m (as both the burgers use 1 cheese slices)\n# 4x + 2y = n (as jumbo use 4 and small uses 2 slices of tomato respectively)\n# ==> 4x + 2y = 2(2x + y) = 2(x+x+y) = 2(x+m)\n# 2(x+m) = n ==> x = n/2 - m ==> n should be even other wise there is no proper distribution. \n# \n# Once we know x, y = m - x. \n# \n# Note: There can be know no negative burger that can be formed. \n\nclass Solution(object):\n    def numOfBurgers(self, n, m):\n        if n%2 != 0:\n            return []\n        x = n/2 - m\n        y = m - x\n        if x < 0 or y < 0:\n            return []\n        return [x,y]\n```
[]