Solution for mendel first law.