Two prisoners whose cells adjoin communicate with each other by knocking on the wall. The wall is the thing which…