need help

upright posts are to be placed at 9 inch intervals on 3 sides of a deck which measures at a total of 36 ft. How many post are needed.
36/3 = 12 am I on the right track?

2 answers

yes, but there's a pole on each end.
12 * 12 = 144 inches on each side.

144/9 = 16

(16*3)+2 = ?