Here it is
[attachment id=0 msg=2590]
In this example X is a non metal
Y is also a non metal
Non metals and nonmetals the combined to form covalent molecules
they are going to share electrons
x needs only one more but Y is in need of three more
So Y is going to share its three electrons with three X atoms resulting in the formula
YX3
Y can also share all 5 electrons with 5 X atoms to give YX5
Example -PCl3 and PCl5