The original data can be located in the table below
We know there are 72 cans in total. This number goes to the rightmost bottom corner of the table.
It's also known 42 total cans were in the garbage. That number is located at the Total column of the Garbage row.
It's given 50 cans were Coca-Cola. We locate this data in the total row under the column Coca-Cola.
Finally, we are given there were 14 Sprite cans on the table. The cell that crosses Table and Sprite is filled with the number 14.
Now we have to fill up the rest of the table. The row Table does not have a Total, but we can easily find it by subtracting 72 - 42 = 30. This means there were 30 cans on the table.
Now we know the total cans found on the table, we can find how many Coca-Cola cans were there, by subtracting 30-14=16. There were 16 Coca-Cola cans on the table.
In the last row, subtracting 72-50=22 gives us the total Sprite cans found. From those 22, 14 were on the table, thus 22-14 = 8 were in the garbage.
Finally, from the 50 Coca-Cola cans found, 16 were on the table, thus 50-16=34 were in the garbage
The filled table is shown below: