There will be 216 combinations and 3 scores for each combination. According the explaination, largest number times second largest number plus smallest number would produce the largest result. Hence, by getting all 3 scores and take the Max score for the final result would do.