There's more than one way to do it. Your modem has one USB and one ethernet port, right?
Just connect the USB output to the desktop and the ethernet output to the laptop, or vice versa.
You can also use an inexpensive network switch or hub, connect the uplink port to the modem, and the other ports to your computers.
Or you can use a wireless router.