Refer to the attached image,
Peter hits a ball that is 20 inch from a wall means AB=20 in
A ball travels 34 in until it hits the wall means AC=34 in
It bounces back to a position means CD = 'x' in (Say)
It bounces back to CD which is 16 in from the wall means DE=16 in
We have to calculate the value of 'x'.
Since, ball is reflected from point C. By law of reflection which states the angle of reflection is equal to the angle of incidence.
So,
= y degrees (say)
Since angles BCF and FCE are right angles.
So,
(equation 1)
Now, in triangle ABC and CDE
(Each angle is right angle)
(From equation 1)
Therefore, triangle ABC is similar to triangle DEC by AA similarity.
So, the ratio of corresponding sides are equal.

Substituting the values,


x = 27.2 in
Therefore, the distance, x, the ball traveled after it bounced off the wall to get to the ending position is 27.2 in