Simple Math
java\n/*\n* 4x + 2y = tomato\n* 1*x + 1*y = cheese\n*/\nclass Solution {\n    public List<Integer> numOfBurgers(int tomatoSlices, int cheeseSlices) {\n        i
```java\n/*\n* 4x + 2y = tomato\n* 1*x + 1*y = cheese\n*/\nclass Solution {\n    public List<Integer> numOfBurgers(int tomatoSlices, int cheeseSlices) {\n        int jumbo = tomatoSlices/2-cheeseSlices;\n        int small = cheeseSlices - jumbo;\n        if (jumbo < 0 || small < 0 || tomatoSlices%2 == 1) {\n            return Collections.emptyList();\n        }\n        return Arrays.asList(jumbo, small);\n    }\n}\n```
[]