I know that a median of a triangle is a line joining one of the vertices to the mid-point of the opposite side.
For example, in a triangle $OAB$, $O$ is the origin, $A$ is the point $(0,6)$ and $B$ is the point $(6,0)$.
How can I show that the point $(2,2)$ lies on all three medians?

$\color{red}{\text{Method 1}}$: All three medians of a triangle pass through the centroid of the triangle hence the centroid of $\triangle OAB$ having vertices $O(0, 0)$, $A(0, 6)$ & $B(6, 0)$ is given as $$\left(\frac{x_1+x_2+x_3}{3}, \frac{y_1+y_2+y_3}{3}\right)\equiv\left(\frac{0+0+6}{3}, \frac{0+6+0}{3}\right)\equiv(2, 2)$$ Thus the given point $(2, 2)$ (coincident with the centroid) lies on all three medians of $\triangle OAB$.
$\color{red}{\text{Method 2}}$: Calculating the mid-points of all the sides of $\triangle OAB$ & finding the equations of all three medians of $\triangle OAB$ as follows
$\color{blue}{\text{Median 1}}$: drawn from the vertex $A(0, 6)$ to the mid-point of side $OB$ i.e. $\left(\frac{0+6}{2}, \frac{0+0}{2}\right) $ or $(3, 0) $ given as $$y-6=\frac{0-6}{3-0}(x-0)$$ $$\implies \color{blue}{2x+y-6=0}$$
Substituting the coordinates of the given point $(2, 2)$ in the above equation of the median, as follows $$2(2)+2-6=0$$ $$\implies 0=0$$ Hence, point $(2, 2)$ lies on the median through the vertex $A$. Similarly,
$\color{blue}{\text{Median 2}}$: drawn from the vertex $B(6, 0)$ to the mid-point of side $OA$ i.e. $\left(\frac{0+0}{2}, \frac{0+6}{2}\right) $ or $(0, 3) $ given as $$y-0=\frac{3-0}{0-6}(x-6)$$ $$\implies \color{blue}{x+2y-6=0}$$
Substituting the coordinates of the given point $(2, 2)$ in the above equation of the meridian, as follows $$2+2(2)-6=0$$ $$\implies 0=0$$ Hence, point $(2, 2)$ lies on the median through the vertex $B$.
$\color{blue}{\text{Median 3}}$: drawn from the vertex $O(0, 0)$ to the mid-point of side $AB$ i.e. $\left(\frac{0+6}{2}, \frac{6+0}{2}\right) $ or $(3, 3) $ given as $$y-0=\frac{3-0}{3-0}(x-0)$$ $$\implies \color{blue}{y=x}$$
Substituting the coordinates of the given point $(2, 2)$ in the above equation of the median, as follows $$2=2$$ Hence, point $(2, 2)$ lies on the median through the vertex $O$.
Thus the given point $(2, 2)$ lies on all three medians of $\triangle OAB$