Yolanda made 21 hats. Yolanda made 3 times as many hats as Greg. Let n be the number of hats that Greg made.

(a) Write an equation that relates the number of hats that they made.
Use 3, n, and 21.

(b) Find n.