For this problem you need to set it up in a certain way. To solve this problem you need to do the butterfly method, as shown in the picture I provided.
It doesn’t matter what goes on top or bottom as long as they are the same. For example the cost will remain the numerator all the way through and the burgers will be the denominator.
Everything else is shown in the image, hopes this helps!