Tests solving problem 36 for max number 2.