how to solve blood relation problem