An efficient scheme for solving a system of fractional differential equations with boundary conditions