Need Help with Piezo Buzzer and Ultrasonic Sensor code

I don't know what knowing that solves? What should I change to make it work? Thanks.