How to set an object reference of an actor that is spawned in?

Thank you! How would I then be able to use this variable in the other blueprint?