The equations fro each tree will be the inital hight plus the hight they grow so:
Now we need the time when A is bigger than B, so first we are going to find the time when they are equal so A=B
So in 5 years they are going to have the same height, so the solution will be 6 years when A is taller than B