If
abc
def
ghi

then
a - 6g3b - 18hc - 6i
d3ef
g3hi
.