This is the Doppler effect.
1. As the sound leaves the horn the sound waves are at first close to each other and as they move outwards they become further apart. The closer the sound waves are the louder the noise.
As the car gets the closer the sound waves get closer, so the horn becomes louder.
2. As the horn moves away, the sound waves become less frequent, causing the pitch to get lower.
The acceleration of the particle at time t is:

The velocity of the particle at time t is given by the integral of the acceleration a(t):

and the position of the particle at time t is given by the integral of the velocity v(t):

Assuming the particle starts from position x(0)=0 at t=0, the distance the particle covers in the first t=2 seconds can be found by substituting t=2 s in the equation of x(t):
A force over distance is work the unite is joules