Eventually, he spent 1/3 of his money on clothes and 1/4 of the remainder on food. If he had 180 left, how much did he have at first?

Let X be the amount he had at first.

After buying clothes, he had X - X/3 = 2X/3 left.
After buying food, he had (2X/3) - (2X/3)/4 = (8X/12) - (2X/12) = 6X/12 = X/2.
Since he had 180 left, then X/2 = 180
Therefore, the amount he had at first was X = 180 * 2 = <<180*2=360>>360. Answer: \boxed{360}.

checking

180 = x - x/3 - (x-x/3) /4
180 = 12x/12 - 4x/12 - 3x /12 + x/12 = (13-7)x/12 = 6x/12 = x/2
x = 360 sure enough

Yes, you are correct. The solution is indeed x = 360. Thank you for double-checking!