(reduce #'+ (loop for e in tmp collect (reduce #'+ (remove-duplicates e)))))))
(defun part-one ()
(get-duplicate-priority-by-bag (mapcar #'split-bag *rucksacks*)))
;----------------------------------Part two------------------------------------
(defun get-groups (bags)
(if bags
(if (> (length bags) 3)
(let ((group (subseq bags 0 3)) (others (subseq bags 3)))
(cons group (get-groups others)))
(list bags))
nil))
(defun get-badge (group)
(let ((b1 (car group)) (group (cdr group)))
(let ((b2 (car group)) (group (cdr group)))
(let ((b3 (car group)))
(remove-duplicates (find-common-elems b1 b2 b3))))))
(defun part-two ()
(let ((groups (get-groups *rucksacks*)))
(reduce #'+
(mapcar #'char-to-priority
(mapcar #'car ;Should only be a single item, so grab the first one we found
(mapcar #'get-badge groups))))))