Visualizing the coordinate plane is key. If a horizontal line segment starts at the origin and lies on the x-axis, its other endpoint's coordinates will simply be (length, 0).
For an equilateral triangle with its base on the x-axis and centered around the y-axis or with one vertex at the origin, the coordinates of the top vertex are always related to the midpoint of the base and the calculated height.