soln to problem "mendel's law"