So that I make two monitors? (Windows 10)
You probably mean 2 monitors on one laptop, that's clear if you have more than one HDMI connection.
No 2 laptops so I liked that one laptop was projected onto the other
Yes you can, download teamviewer on both devices and the rest is self-explanatory.
That is possible, but the laptop with which you want to transfer to the other would have to have an HDMI-out connection and the laptop that serves as a screen should have an HDMI-in connection. However, HDMI out is very unlikely with a laptop!
Don't think laptops usually only have HDMI outputs
Actually, if I imagine it correctly.
If you have two HDMI inputs on the monitor, you can. You just have to switch channels in the monitor menu. The monitor can only show one image at a time. Unless the monitor has a PiP function. Picture in picture.
Since a laptop usually only has monitor outputs and no inputs, you first have to upgrade an HDMI input. You can do this with a capture card. You can then play the input signal of the capture card on the other laptop.
If, on the other hand, you only want to mirror the image (you can see the same image on both devices), you can e.g. Broadcast via remote desktop or stream with other applications.