How do I get rid of the green background?

Changed it to masked. Using the third material just makes everything black instead, including the tree.

I tried using alpha offset but I don’t think I know how to use it. I plugged the green into the alpha input and then tried a constant in the offset but it didn’t work. I tried a few other random things as well.