The contrasting pair of genes affecting a trait and located at the same position on…