A team of students has taken home first place in maths competition.