A tree that is 40 feet tall casts a 30 foot shadow. At the same time another tree casts a 20 foot shadow. How tall is the second tree?