Given the task definition and input, reply with output. You are given a math word problem and you are supposed to apply multiplication or division mathematical operators on the numbers embedded in the text to answer the following question and then only report the final numerical answer.

Adam bought 2 boxes of chocolate candy and 5 boxes of caramel candy . If each box has 4 pieces inside it , how much candy did he have total ?

28