The x coordinate of a point on the line joining the points P(2,2,1) and Q(5,1,-2) is 4.Find its z-coordinate.
A point R with x-coordinate 4 lies on the line segment joining the points P(2, −3, 4) and Q(8, 0, 10). Find the coordinates of the point R.