Go to a ram web site like Kingston, crucial, ...
Access their ram upgrade app.
Enter the make/model of your laptop and you should get a list of supported ram upgrade options.
Then, if you have a problem, you will get support.
Best not to guess.
Most laptops have two ram slots.
Sometimes one of them is soldered in limiting your upgrade possibilities.
If you want a total of 24gb, that may be difficult to come by.