Patrick had 1/9 as many hats to sell as Adam. The two friends decided to share the work evenly. To do that, Adam had to give 12 hats to Patrick. What was the total number of hats the two friends had to sell?

If Patrick had x hats, then Adam had 9x.

9x-12 = x + 12
now finish it off