Complex sentence: Tony arrives unexpectedly and Ralphie hides upstairs-when Tony finds his shoe he warns Janice about getting involved with Ralph but she is unreceptive.
Split into simpler sentences: Tony arrives unexpectedly and Ralphie hides upstairs. When Tony finds his shoe he warns Janice about getting involved with Ralph but she is unreceptive.