how to solve ac machinery problem