Problem 7 here: https://mathcontest.unm.edu/PastContests/2016-2017/2016-2017...
Or a Veritasium video here: https://www.youtube.com/watch?v=iSNsgj1OCLA
Or a Veritasium video here: https://www.youtube.com/watch?v=iSNsgj1OCLA
(That was how I understood the original description, and I was having a really hard time imagining a strategy other than "make sure there is an assignment of numbers to boxes that can satisfy the plan".)