Barrie had some stamps. He gave 1/8 of them to Tom. If he gave 15 stamps to Tom, how many stamps did he have at first?

(1/8)x = 15

Solve for x.