A father of a certain family belongs to blood group AB, and the mother to blood group O. They have four children, one belonging to blood group AB, one to group A, one to B and one to O. One of these children is adopted and another child is from earlier marriage of the mother. State which is the adopted child and which is the child from an earlier marriage and why?