'United States (of America)' as a unit is a proper noun, the name of the country. 'United' is an adjective, and 'of America' is a prepositional phrase (with 'America' its noun object) serving as an adjective. 'Pencil' is a noun serving as an adjective to modify the noun 'box'.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.