I would say, config should be like this:
config
vlan database
vlan 2,3
exit
int range ethernet 1/g(7-12)
switchport access vlan 2
exit
int range ethernet 1/g(13-18)
switchport access vlan 3
exit
int range et 1/g(19-24)
switchport mode trunk
end
int range et 1/g(19-24)
swichport trunk allowed vlan add 2,3
exit
but please take in mind, that ports 19-24 are tagged for all vlans, so they are most likely supposed to other switches real or virtual.