Two-point problem for higher-order systems