Example: Some birds are sitting in two trees. The birds in the first tree say to the others: "If one of you comes to our tree, our number will be twice your number." The birds in the second tree said: "If one of you comes here, our number will be equal to yours." How many birds are in each tree? (Answer: $$7$$ and $$5$$).