There were 2 cases of soda, 24 in each. So 2•24=48. There were 48 total cans.
On Friday, he drank three of them. So there were 45 cans left.
On Saturday, there were 5 left. Since there were 45 cans before, 45-5 shows that Iago and his friends drank 40 sodas on Saturday.
[(2•24)-3]-5=40