It is possible to write a smart contract that will send waves to the wallet equal to two wallets. Can you help with the code?

It is possible to write a smart contract that will send waves to the wallet equal to two wallets. Can you help with the code?

Smart contract is inactive entity. So it can’t send any transactions. You have to create transactions with some sort of external service, and the smart contract will validate them against the rules written in it.

is it possible to explain your description with an example

May be this video can help you https://www.youtube.com/watch?v=FEq4kU9mAas&t=2s