Expressions with Two Variables

Two free points, A and B, are given on a number axis. The coordinate of the third given point is an arithmetic expression of their coordinates. By sliding A and B along the axis and observing the position of the third point, you have either to mark certain numbers on the unmarked axis knowing this expression or find the expression given the axis marking.