I will show a little tricky thing about Layer 3 communication between different vlans.
Given the following figure.
So it is a very silly thing. On SW1 you have configured vlan30 for port fa0/1 and fa0/2.
On Switch SW2 you have configured Vlan20 for port fa0/3 and fa0/1.