This study will evaluate safety, tolerability, pharmacokinetics, metabolites, pharmacodynamics and clinical activity of MRTX849 (adagrasib) in combination with BI 1701963 in patients with advanced solid tumors with a KRAS G12C mutation. MRTX849 is an orally available small molecule inhibitor of KRAS G12C and BI 1701963 is a SOS1 pan-KRAS inhibitor.