Total utility refers to the utility in which the is satisfaction after consuming the multiple units from a good or a service
As we can see from the attached figure that at the number of 8 hot dogs the total utility is maximum i.e 55
Therefore in the given case, the optimal number of hot dogs he will eat is 8 as at this point the total utility is more as compared to the other utilities