easiest JAVA solution
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)$$ -->  O(1)\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->  \n\n# Code\n```java []\nclass Solution {\n    public List<Integer> numOfBurgers(int tomatoSlices, int cheeseSlices) {\n        ArrayList<Integer>ans=new ArrayList<>();\n\n        // x is jumboburger and y is smallburger\n        // 4x+2y should be equal to total tomatoslices\n        // x+y should be equal to total cheeseslices\n      int smallBurger=(4*cheeseSlices-tomatoSlices)/2;\n      int jumboBurger=cheeseSlices-smallBurger;\n\n    if(tomatoSlices%2==0 && smallBurger>=0 && jumboBurger>=0){\n     ans.add(jumboBurger);\n     ans.add(smallBurger);  }\n\n     return ans;\n    }\n}\n```
['Java']