A pinhole camera is placed 300m in front of a building so that the image…