Print the shelf and either of the hooks. One set is a tighter fit, if they don't fit well, try using the looser version.
Push hooks into back of shelf before mounting to a wall.