AM4 will be amd processors like ryzen.
LGA1151 will be intel.
lga1151 motherboard with 300 series chipsets will support 8/9th gen intel processors.
100 and 200 series chipsets support older intel processors.
If you look at the cpu support list for a motherboard, you will get a list of all the supported processors.