Where do the Krebs cycle and the electron transport chain take place

Where do the Krebs cycle and the electron transport chain take place