In fact, MIT developed 2 AGCs: one was located in the command module and was the centre of the ship's guidance, navigation and control system. The second one was located in the lunar module and was used to control the landing and return ascent to the control module as well as the mooring.
The AGC receives its main information from the inertial system as well as from two radars, when they are activated. Using navigation programs for each phase of the mission, it is thus able to control the main engines and the orientation engines in direction and thrust, so that the ship follows the calculated trajectory. Astronauts use a console to enter the various instructions: launching a navigation program, requesting information, resetting the position, entering the flight parameters to be executed, etc.