The answer depends on the fact that the motorcycle with a sidecar is itself passing at this moment: it is driving alongside the truck in the next lane and getting past it. The rules prohibit passing a vehicle whose driver is passing or going around an obstacle. So the car has to wait until the motorcycle finishes passing, and only then decide whether it can pass the motorcycle itself