In a team of four: Tom, Jerry, Spike, and Tyke, the following rules apply: Tom cannot work with Jerry. Spike can work with either Tom or Jerry, but not both. Who can work together without violating the rules?
Five tasks need to be completed: Task 1, Task 2, Task 3, Task 4, and Task 5. Task 2 must be completed before Task 3, and Task 4 must be completed before Task 5. Task 1 can be done at any time. What is a valid order of completion?