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

$270$275total received = ?45 melons55 melons

Plain numbers are given; italic underlined numbers are worked out.

  1. 45 melons → 45 × $6 = $270
  2. Rest → 100 − 45 = 55 melons
  3. 55 melons → 55 × $5 = $275
  4. Total → $270 + $275 = $545

Tom received $545 from selling all the melons.

Check: $270 + $275 = $545, from 45 + 55 = 100 melons. ✓