It is given that a tree casts 35m long shadow and at the same time a pole casts a shadow 7m tall.The pole is 4.5m tall.
So make 2 similar triangles as follows:
As both shadows are cast at the same time, the angle is essentially the same.
Hence the height of tree is 22.5m.