The genes affecting the same trait and are located at the same position on the…