How to check which RAM and SSD your laptop supports
Find the exact model. Look at the label on the bottom of the laptop, or run wmic csproduct get name in Windows Command Prompt. On a Mac, choose Apple menu › About This Mac.
Check whether memory is soldered. Many thin laptops have some or all memory soldered to the board; soldered memory cannot be replaced.
Match the memory type. DDR4 and DDR5 modules are not interchangeable, and laptops use the smaller SO-DIMM size.
Check the SSD slot. M.2 drives come in lengths (2230, 2242, 2280) and interfaces (NVMe or SATA). The drive must match both.
Respect the maximum. The manufacturer's maximum is what is tested; more may not be recognised.