Here are a couple hints:
Review the distinction between _constants_ (aka atoms) and _variables_.
Use the proper Prolog terminology. Prolog is not C; findall is not a
"function", it's a "predicate".
HTH.
--
---------------------------
| BBB b \ Barbara at LivingHistory stop co stop uk
| B B aa rrr b |
| BBB a a r bbb | ,008015L080180,022036,029037
| B B a a r b b | ,047045,L014114L4.
| BBB aa a r bbb |
-----------------------------