There are two trees in a garden (A and B) and on both trees are some birds.
The birds in tree A say to the birds in tree B, "If one of you comes to our tree, then our population will be double that of yours."
But the birds in tree B counter, "If one of you comes here, then our population will be equal to that of yours."

How many birds are in each tree? (before the birds move around)

p.s. Please show your work