Gloss white primer for the purple foam board will work fine, and carpenter’s glue for poster board to hold the sides on will work well.
You can use leftover foam board to make forms to clamp the poster board to the sides, by making a negative shape of the letter sides so that you can clamp the paper in, that will also help hold it square.