The 3 variable in this question are the item, their prices, and the quality. using these three variable we get the equation
P1x + P2y + P3z
as we are counting 5 days worth of ice cream sales, that expression must be multiplied by 5 before it is complete
5(P1x + P2y + P3z)
that is your expression
:)