Instead of manually trying them, I wrote a program to try all the combinations until the solution was found.
Below are links to the resources, including the source code for the program, the solution steps, and the program.
I also had the program try all numbers from 0 to 50 and the number '42' is the only one that can work in all columns at the same time.