If a tree casts a 35 foot shadow at the same time as a man, 6 feet tall, casts a 5 foot shadow how tall is the tree

You need a simple ratio:

h/35 = 6/5
h = 35(6/5) = 42 , not 30

The tree is 30 feet tall.