Answer: the number of nails in each box of 2-inch nails is 54
Step-by-step explanation:
Let x represent the number of nails in each box of 2-inch nails.
Tony bought 3 boxes of 1-inch nails for a total of 237 1-inch nails. This means that the number of 1-inch nails in each box is 237/3 = 79
He also bought 5 boxes of 2-inch nails that had equal amounts of nails. He bought a total of 507 nails. This means that
237 + 5x = 507
5x = 507 - 237
5x = 270
x = 270/5
x = 54