100% space and time beats || Well explained solution using normal mathematics
Code
# Code
```cpp []
class Solution {
public:
    vector<int> numOfBurgers(int ts, int cs) {
        int x=(ts-2*cs)/2;
        int y=cs-x;

        /*
        Solve Equation:-
        1. 4*Jumbo + 2*small = tomatoSlices 
        2. Jumbo + small = cheeseSlices

        from these two equation find value of 
        jumbo and small and make sure both is
         positive and and your check 
         correctness of you answer by 
         applying on both equation.........
        */
        if(x<0 || y<0)return {};
        if(4*x+2*y!=ts)return {};
        return {x,y};
    }
};
```
['C++']