Dominic spent 1/4 of his money on a pair of socks, 1/5 of it on a magazine and 50 on a snack. If he had 82 left, how much money did he start with?