Need advice/ opinions on this situation

So I’m in a class, mind you I’m in college, we started the semester a couple weeks ago. There is a guy that sits next to me and a girl that sits in front of me. We decided to go into groups the first week and it’s been like that since and the groups are set. The girl is nice to me and we talk but the guy isn’t. I don’t go into my classes looking for new friends nor do I try to. But I will be nice to you because why be rude to someone you don’t know. Right? Especially if we have to be in a group together each week. I try to be nice because I’m not a mean person and I like to get my work done. But ever since I met this guy he has been mean to me for no reason which I never met him before. Any time I tried to make a convo with him, he just gives me a stare like if I’m dumb or he’s just waiting for me to shut up. For example, we were leaving class packing up & I told him “you need to put your name on the packet” and he’s like “gimme your pencil” which I was a hurry because my bf was on the way and of course I wanted to leave and I gave him my pen because it was in my hand and he’s like “um your pencil” with a rude voice and rolls his eyes and I’m just like Wtf! I’m not going in there to be all best friends with the dude but for him to be rude to me only for no reason doesn’t make sense. Sometimes I just want to just change groups but I can’t 🤦🏼‍♀️ I’m trying to handle this in a adult matter because we aren’t little kids anymore. But I’m just tired of dealing with that BS! The first time I was nice but I try to make small talk because I don’t even wanna deal with him but it’s hard since we have to work together and help each other out 🙄🙄🙄