And what if they have both types?
		
		
	 
It is not possible for a human to have both types of gametes.
In the extraordinarily rare case of true hermaphroditism, an individual may have:
Two testes that do or do not produce sperm (always considered male)
Two ovaries that produce do or do not eggs (always considered female)
One testis that does or does not produce sperm and one ovotestis that produces no gametes (always considered male)
One ovary that does or does not produce eggs and one ovotestis that produces no gametes (always considered female)
One testis that produces sperm and one ovary that produces no gametes (always considered male)
One testis that produces no sperm and one ovary that produces eggs (always considered female)
One testis and one ovary where neither produces gametes (classification based on genetic composition)
Two ovotestes that produce no gametes (classification based on genetic composition, usually male but not always)
Something on the order of 99% of cases do NOT involve having both a testis and an ovary.  The most common cases involve one or two ovotestes.  And in most cases where the person has two ovotestes, they are still genetically classifiable as either male or female.