How was the Trinity present at the baptism of Jesus?

Here Jesus was baptized, the holy spirit came on him as s dove , and God spoke from heavem , all three were there.