Connection between arduino and l298n driver

thanks partner but what if i use 6 AA 1.5 volts for the first one ??
or the 2nd ?