[C++] Simple 5 line sol
Explanation : Let\'s assume \nx be the number of Jumbo Burgers \ny be the number of Small Burger. \nSo total tomatoSlices used will be given by equation (ts) : 
**Explanation** : Let\'s assume \n`x` be the *number of Jumbo Burgers* \n`y` be the *number of Small Burger*. \nSo total tomatoSlices used will be given by equation (ts) : \n`ts` : ***4x+2y***\nTotal CheeseSlices used (cs) : \n`cs` : ***x + y***\n\nSolving the following would give us x = `ts-2*cs/2`\nIf any of x and y is negative then it\'s not possible to make `ts and cs` as 0.\nand if total ts obtained after using x and y is <0 or >0 then also the answer won\'t exist.\nReturn `{}` in those cases else return `{x,y}`\n\n```\nclass Solution {\npublic:\n    vector<int> numOfBurgers(int ts, int cs) {\n        int x = (ts- 2*cs)/2;\n        int y = cs- x;\n        if(x <0 || y<0) return {};\n        if(4*x + 2*y < ts || 4*x + 2*y > ts) return {};  \n        return {x,y};\n    }\n};\n```
['Math', 'C']