Gauge theory -> IIB -> IIA ->M duality