Hi Ariedel,
The name is merely a nice memorable tag for humans 🙂 The devices themselves speak only in numbers.
You will need to match the vlan-id (which should be a number) on both devices to ensure that the 802.1Q header in the Ethernet packets exchanged by the two devices are recognised as belonging to the right VLAN.
If the AP has VLAN 2 for SSID "office" and VLAN 3 for SSID "guest", then you must configure VLANs 2 and 3 on the EX port to which the AP is connected.
You may also need to configure a 'management' VLAN on the AP that is neither VLAN 2 or 3.
Rgds,
Guy