there is a two methods to solve this problem

so 40 and 96 both are correct answers,.