The sum of the product and the sum of two positive integers is \(31\). Find the largest possible value of the product of their sum and their product.

This problem has already been solved here: https://web2.0calc.com/questions/help_80189