GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it
1 7gp 7 10 1 {a, b} {[b, a, a, b, b]^49, (a * b * b * a * b * a)^49, b^7} 0 2 7GP 0