2

You have the task of transporting 5000 toy cars to the kids in Matchbox town.
However, your semi can only hold 2500 toy cars, and you have to give up one toy car every two miles to a kid on the way there, but not on the way back.

How many toy cars can you get to Matchbox town?

Rand al'Thor
  • 116,845
  • 28
  • 322
  • 627
baranskistad
  • 133
  • 5

1 Answers1

3

You want to consolidate the toys from 2 truckloads to 1 truckload as soon as possible.

This is after 2500 miles

So you end up delivering

2500 - (Distance to Matchbox Town - 2500)/2 assuming the Distance is >2500, and less than 7500.

Or

(2500-Distance to Town)/2 if the distance is <2500.

Or no toys at all, if the distance is greater than

7500

Sconibulus
  • 19,731
  • 1
  • 45
  • 114