Question: what is the formula of orthocentre of a triangle?
Answer: Find the equations of two line segments forming sides of the triangle. Find the slopes of the altitudes for those two sides. Use the slopes and the opposite vertices to find the equations of the two altitudes. Solve the corresponding x and y values, giving you the coordinates of the orthocenter.