Analysis of Total Cost using the given context