Suggest you have a read on the internet like wikipedia about mode S against mode S ADS-B (where aircraft broadcast position info). And also mode S multilateraton, where for an aircraft that is not broadcasting positional info, a number of mode S receivers can triangulate the rough position