Painter problem question

is this problem similar to book allocation problem and aggressive cows?