The money received is the whole bar: the takings from the 45 melons plus the takings from the remaining 55 melons.

[[model:questions/solutions/q4133.png]]

• 45 melons → 45 × $6 = $270
• Rest → 100 − 45 = 55 melons
• 55 melons → 55 × $5 = $275
• Total → $270 + $275 = $545

Tom received $545 from selling all the melons.
Check: $270 + $275 = $545, from 45 + 55 = 100 melons. ✓