Simplest solution using linear eq in two variable || TC-> O(1) || SC->O(1)
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution {\npublic:\n    vector<int> numOfBurgers(int t, int c) {\n        int a,b;\n        if(t&1) return {};\n        a=(t-2*c)/2;\n        b=(4*c-t)/2;\n        cout<<a<<" "<<b<<endl;\n       if(a<0 || b<0) return {};\n       return {a,b};\n    }\n};\n```
['C++']