Both parents have to have the gene. Mary Jane clearly has only the red hair gene (two of them). Peter would have to have a brown hair gene and a red hair gene . . . which means at least one of his parents had a red hair gene, but could have also not had red hair, as long as the other parent provided the brown hair gene. (Honestly, I believe there are more complex possibilities, but I'm going on pretty basic knowledge.)