You can plug both into the modem if it has multiple ports, or you could switch the cable from one to the other, but you'll only be able to use one at a time.
If you want to use both concurrently, you'll need a router. Cost should be $100-$300, and for $300 you could even get a cheap wireless router.