BST Operations Help

In the Binary Search Tree, if i delete a node that has children, what should i print as the node deleted? The original location of x? Or the last location in the tree which does not have an element?

You should print the “value” of the node that was deleted.