How to solve genetics problems with forked line method