There's this many Packages and this many cans in each package right? All you have to do is multiply the number of cans and the number of packages to get the total number of cans.
For the cost is the same thing. If you know the cost is this much, multiply the amount of packages×The cost of each package which will give you the total cost. Good luck