Watch a value walk down a binary search tree, left when smaller and right when larger, until it finds an empty spot. Worked example inserting 22, then yours.
About this algorithm
Insertion adds a new value to a binary search tree without breaking its ordering rule. It repeats the search walk, and the place where that walk falls off the tree is the only spot the new value can go. So the new node always arrives as a leaf, and no existing node moves.
Use plain BST insertion when you build a search tree one value at a time and want the values kept in order as they arrive, for example scores you will later read back sorted or query by range. Pick the search page's walk alone when you only need to check whether a value is there, since insertion is that walk plus one more step. If values may arrive already sorted, plain insertion builds a chain, so reach for a self-balancing tree (AVL, red-black) or a library ordered map such as Java's TreeMap or C++'s std::set, which balance for you. If you never need the order, a hash set is simpler and faster.
Start at the root. At each node, go left if the new value is smaller and right if it is larger.
When the side you need has no child, the new value goes there as a leaf: the left child if it was smaller than this last node, the right child if larger.
If you meet a node holding the same value, a set-style tree refuses it. This page does that and marks the node red. Trees that allow repeats either send equal values consistently to one side or keep a count inside the node.
Plain insertion never rebalances. The shape of the tree is decided entirely by the order the values arrived in.
The page starts with 20 at the root, 10 and 30 as its children, and 5, 15, 25 and 35 as leaves, with 22 in the insert box. 22 is larger than 20, so go right to 30. 22 is smaller than 30, so go left to 25. 22 is smaller than 25, so go left, and 25 has no left child. 22 becomes the left child of 25, and the tree grows to 8 nodes over 4 levels. Read in order, it gives 5, 10, 15, 20, 22, 25, 30, 35, still sorted. The new node stays until you press Reset BST, so inserting 22 a second time meets the existing 22 and changes nothing.
Removing a leaf just clears its parent link, and a node with one child is replaced by that child. A node with two children is replaced by its in-order successor, the smallest value in its right subtree, which is then removed from where it was. Insertion never meets that case, because a new node always arrives with no children.
Time: the walk goes one level per comparison and then links one node, so it costs the height of the tree, about log N when balanced and N for a chain built from sorted input. Space: an iterative walk needs only the current node and the one new node, whatever the size of the tree.