Existence of solutions to boundary value problems for dynamic systems on time scales