Explain the conditions where the assumption of total mechanical energy of a system is conserved.

There must be no friction and no work must be performed on or by the system.