Mukundi had c goats. Kahua had 8 goats. They had 40 goats altogether. Form an equation on the total number of goats.