Btw, you can just use photo math, its an app you can download on the app store. Just take a pic of the math problem and it'll show you the answer AND how to do it.
It would be 6(4a2 - 3) you would factor out just the 6 because the 18 doesn’t a a term with it like 34a2 does. then just divide normally to get ur answer 6(4a2 - 3)