public static int[] outputWordsPosition(ArrayList<String> list,
                        ArrayList<String> sameSet, int[] counts){
        int i = list.size();
        int[] positions = new int[sizeOfComputing];
        counts[0] = 0;
        counts[1] = 0;

        for(String str : list) {
            for(String sameStr: sameSet) {
                if(str.equals(sameStr)){
                    // total relevant items
                    counts[1]++;

                    if(i <= sizeOfComputing)
                    {
                        // the relevant items in the 12-item
                        counts[0]++;
                        positions[i-1] = 1;
                    }
                    break;
                }
            }
            i--;
        }

        return positions;
    }