The backtracking method solves the subset and the number given a set of n integers X={x1,x2....xn} and the integer y, finds a subset Y of the X equal to and equal to y.