Circuit with two Ultrasonic Sensors.

Can i ask here??

I want to use two ultrasonic sensor
the first code uses vibrating motor as an alarm
while the second sensor uses a two LED and a buzzer/speaker a an alarm too..

this two codes works fine when i tested it with my sensor
but when i combined it in the loop and modifying the codes and pin designations it does not work fine..
SO i am looking for a help or tutorial on how could i make this two code be in one
thanks for those who would help..