A company has two departments X and Y. Y transferred goods to X at a…