Hi @Ishaan Pant ,
your classmate is using his own subscription of Azure for students? Or are you sharing the same subscription?
If you are using different subscriptions please verify the Offer and Offer ID of both subscriptions if they are the same.
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten