2 Mikrotiks, one switch, vlans

Good evening, tell me how best to connect 2 Mikrotik with a cable to vlans 1, 10, 12, 14, 18

Devices:
microikRB
MikrotikHEX
controllable switch
access point

With MikrotikRB, the third port is plugged into the first port of the switch, there are vlans in it.
The third port of the switch is connected to the first MikrotikHEX port.

behind MikrotikHEX there is a wired client and one Wi-Fi point

Below is a diagram, is it possible to implement something similar? If so, tell me how to do it?
I’m not good at networking, so I came to you for help :slight_smile:
Untitled Diagram.drawio.png

Apart from using VLAN ID 1…sure.
Have a good read: http://forum.mikrotik.com/t/using-routeros-to-vlan-your-network/126489/1

Concur dont use vlan1.
Decide on a managment or trusted vlan.
All your smart devices should get their IP address from this vlan.
on the hex the only vlan you identify (and tag) to the bridge is this trusted vlan.
The rest just flow in the trunk port and go out the other ports ( as per /interface bridge ports and /interface bridge settings )