These two sentences are from TOEFL speaking (tpo40):
(1) I got to know a lot of people in my dorm during my first semester just watching TV and taking study breaks in the lounge.
(2). If students knew about rideshares, they could save money getting to campus because a few of them could travel in one car.
These "doing something" make no sense to me. For example, does the first sentence mean "when I was just watching tv and taking breaks?" And does the second one mean "by/through getting to campus?"
Besides, what's the grammar behind these two sentences? I feel like they're more like being combined together haphazardly than based on grammar.