Existence of solutions for a two-point boundary value problem