j
by subtracting twice the number of cheese slices from the number of tomato slices and dividing by 2.s
by subtracting j
from the number of cheese slices.j
and s
are non-negative integers and if they use up all the tomato and cheese slices.[j, s]
. Otherwise, return an empty list.