C++ Easy Solution
\nvector<int> numOfBurgers(int a, int b) {\n        int x=(a-2*b)/2;\n        int y=(4*b-a)/2;\n        vector<int> ans;\n        if(4*x+2*y==a && x+y==b && x>=
```\nvector<int> numOfBurgers(int a, int b) {\n        int x=(a-2*b)/2;\n        int y=(4*b-a)/2;\n        vector<int> ans;\n        if(4*x+2*y==a && x+y==b && x>=0 && y>=0){\n            ans.push_back(x);\n            ans.push_back(y);\n        }\n        return ans;\n    }\n```
[]