Elements X and Y have electronic configurations 1s\(^2\)2s\(^2\)2p\(^4\) and 1s\(^2\)2s\(^2\)2p\(^6\)3s\(^2\)3p\(^1\) respectively. When they combine, the…