A third of Karim's marks in Mathematics exceeds a half of his marks in Social Studies by 30, if Karim got 240 marks in the two subjects together, how many marks did he get in Social Studies ?