Jenna writes four three-digit numbers:
634 995 816 742
Later, for each of the four numbers, she multiplies the 2nd digit with the 3rd digit and adds the product with the square of the 1st digit.
Find which number will be the last number if the numbers are then arranged in ascending order based on the sums.