Dear friends, this is my personal opinion, you can make the following configuration:
For sw1:
vlan 10
int e1/0/5 Enter the port 5
port access vlan 10 Add port 5 to VLAN 10
vlan 20
int e1/0/15
port access vlan 20
int e1/0/24
port link-type trunk Set port 24 to port TRUNK
port trunk permit vlan all
For sw2:
You can execute
vlan 10
int e1/0/20
port access vlan 10
int e1/0/24
port link-type trunk
port trunk permit vlan all
disp int e1/0/24 Check to see if port 24 is TRUNK
undo port trunk permit vlan all
I hope I can help you.
:-)