Bob has 15 more cards than Alan. Colun gives Bib 25 cards. Bob now has 3 times as many as Alan. How nany has Alan got?

B = A + 15

B + 25 = 3A

Substitute A+15 for B in the second equation and solve for A.