Cofounded variables are factors that are related to both the independent and dependent variables, potentially skewing results, while extraneous variables are unrelated influences that can affect the outcome but are not the focus of the study. For example, in a study on exercise effectiveness, a cofounded variable could be participants' diet, while an extraneous variable might be the participants' sleep quality. The distinction lies in the visibility of their influence on the stimuli being tested.