Suggest you get a router, & connect your mdem to the router via an ethernet connection. Connect your desktop to the router via an ethernet connection.
Do you want the laptop connection hard wired or wireless? has an impact on the type of router; also your laptop would probably need a wireless card. Much easier & cheaper to hard wire your laptop to router with a Cat5 cable connection.