This literature review looks into the roles that programming and mathematics can take in relation to each other in an educational environment. This is done by retrieving papers from Web of Science and MathEduc on mathematics and programming in education, prior to university level, and analysing their tasks through a lens of Instrumental Orchestration. The four different exploitation modes identified are manipulating a physical entity, manipulating a virtual entity, creating own interactive environment and creating, testing and refining mathematical algorithms. Depending on how mathematics and programming are positioned in the four modes, the emphasis on mathematics and programming varies, resulting in different outcomes of the lessons.