Newbie to recording with interface

I’m trying to get my guitar and vocals into Audacity 2.3.3. All kinds of problems getting any sound out of it, and -9999 error when I try to select Line In Behringer for the Recording Device. How do I set this up to that these are compatible? Windows 10, Behringer UM2.